Minecraft 1.16.4 support

This commit is contained in:
md_5 2020-11-03 07:00:00 +11:00
parent 4199b0ca64
commit 281aecef4c
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
2 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_16_1 = 736;
public static final int MINECRAFT_1_16_2 = 751;
public static final int MINECRAFT_1_16_3 = 753;
public static final int MINECRAFT_1_16_4 = 754;
public static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"1.8.x",
"1.9.x",
@ -69,7 +70,8 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_16,
ProtocolConstants.MINECRAFT_1_16_1,
ProtocolConstants.MINECRAFT_1_16_2,
ProtocolConstants.MINECRAFT_1_16_3
ProtocolConstants.MINECRAFT_1_16_3,
ProtocolConstants.MINECRAFT_1_16_4
);
public enum Direction

View File

@ -66,6 +66,7 @@ public abstract class EntityMap
return EntityMap_1_16.INSTANCE;
case ProtocolConstants.MINECRAFT_1_16_2:
case ProtocolConstants.MINECRAFT_1_16_3:
case ProtocolConstants.MINECRAFT_1_16_4:
return EntityMap_1_16_2.INSTANCE;
}
throw new RuntimeException( "Version " + version + " has no entity map" );