Minecraft 1.17.1 support
This commit is contained in:
parent
b9da505efe
commit
c866619f56
@ -35,6 +35,7 @@ public class ProtocolConstants
|
|||||||
public static final int MINECRAFT_1_16_3 = 753;
|
public static final int MINECRAFT_1_16_3 = 753;
|
||||||
public static final int MINECRAFT_1_16_4 = 754;
|
public static final int MINECRAFT_1_16_4 = 754;
|
||||||
public static final int MINECRAFT_1_17 = 755;
|
public static final int MINECRAFT_1_17 = 755;
|
||||||
|
public static final int MINECRAFT_1_17_1 = 756;
|
||||||
public static final List<String> SUPPORTED_VERSIONS;
|
public static final List<String> SUPPORTED_VERSIONS;
|
||||||
public static final List<Integer> SUPPORTED_VERSION_IDS;
|
public static final List<Integer> SUPPORTED_VERSION_IDS;
|
||||||
|
|
||||||
@ -80,7 +81,8 @@ public class ProtocolConstants
|
|||||||
ProtocolConstants.MINECRAFT_1_16_2,
|
ProtocolConstants.MINECRAFT_1_16_2,
|
||||||
ProtocolConstants.MINECRAFT_1_16_3,
|
ProtocolConstants.MINECRAFT_1_16_3,
|
||||||
ProtocolConstants.MINECRAFT_1_16_4,
|
ProtocolConstants.MINECRAFT_1_16_4,
|
||||||
ProtocolConstants.MINECRAFT_1_17
|
ProtocolConstants.MINECRAFT_1_17,
|
||||||
|
ProtocolConstants.MINECRAFT_1_17_1
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( SNAPSHOT_SUPPORT )
|
if ( SNAPSHOT_SUPPORT )
|
||||||
|
@ -69,6 +69,7 @@ public abstract class EntityMap
|
|||||||
case ProtocolConstants.MINECRAFT_1_16_4:
|
case ProtocolConstants.MINECRAFT_1_16_4:
|
||||||
return EntityMap_1_16_2.INSTANCE_1_16_2;
|
return EntityMap_1_16_2.INSTANCE_1_16_2;
|
||||||
case ProtocolConstants.MINECRAFT_1_17:
|
case ProtocolConstants.MINECRAFT_1_17:
|
||||||
|
case ProtocolConstants.MINECRAFT_1_17_1:
|
||||||
return EntityMap_1_16_2.INSTANCE_1_17;
|
return EntityMap_1_16_2.INSTANCE_1_17;
|
||||||
}
|
}
|
||||||
throw new RuntimeException( "Version " + version + " has no entity map" );
|
throw new RuntimeException( "Version " + version + " has no entity map" );
|
||||||
|
Loading…
Reference in New Issue
Block a user