Minecraft 1.15.2 support
This commit is contained in:
parent
4bb0fb67a8
commit
129884f44d
8
pom.xml
8
pom.xml
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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" );
|
||||
@ -254,11 +255,11 @@ public abstract class EntityMap
|
||||
try
|
||||
{
|
||||
new NBTInputStream( new ByteBufInputStream( packet ), false ).readTag();
|
||||
} catch ( IOException ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
break;
|
||||
} catch ( IOException ex )
|
||||
{
|
||||
throw new RuntimeException( ex );
|
||||
}
|
||||
break;
|
||||
case 15:
|
||||
DefinedPacket.readVarInt( packet );
|
||||
DefinedPacket.readVarInt( packet );
|
||||
|
Loading…
Reference in New Issue
Block a user