Minecraft 1.15.2 support
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user