Minecraft 1.15.2 support

This commit is contained in:
md_5 2020-01-22 08:00:00 +11:00
parent 4bb0fb67a8
commit 129884f44d
4 changed files with 14 additions and 11 deletions

View File

@ -68,8 +68,8 @@
<properties>
<build.number>unknown</build.number>
<netty.version>4.1.45.Final</netty.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -77,13 +77,13 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<version>4.13</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
<version>21.0</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -27,6 +27,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_14_4 = 498;
public static final int MINECRAFT_1_15 = 573;
public static final int MINECRAFT_1_15_1 = 575;
public static final int MINECRAFT_1_15_2 = 578;
public static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"1.8.x",
"1.9.x",
@ -58,7 +59,8 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_14_3,
ProtocolConstants.MINECRAFT_1_14_4,
ProtocolConstants.MINECRAFT_1_15,
ProtocolConstants.MINECRAFT_1_15_1
ProtocolConstants.MINECRAFT_1_15_1,
ProtocolConstants.MINECRAFT_1_15_2
);
public enum Direction

View File

@ -87,7 +87,7 @@
<dependency>
<groupId>net.sf.jopt-simple</groupId>
<artifactId>jopt-simple</artifactId>
<version>4.9</version>
<version>5.0.4</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -58,6 +58,7 @@ public abstract class EntityMap
return EntityMap_1_14.INSTANCE;
case ProtocolConstants.MINECRAFT_1_15:
case ProtocolConstants.MINECRAFT_1_15_1:
case ProtocolConstants.MINECRAFT_1_15_2:
return EntityMap_1_15.INSTANCE;
}
throw new RuntimeException( "Version " + version + " has no entity map" );