Minecraft 1.14.4 support

This commit is contained in:
md_5 2019-07-20 09:00:00 +10:00
parent 7669801e69
commit 5c6bc183fd
2 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_14_1 = 480; public static final int MINECRAFT_1_14_1 = 480;
public static final int MINECRAFT_1_14_2 = 485; public static final int MINECRAFT_1_14_2 = 485;
public static final int MINECRAFT_1_14_3 = 490; public static final int MINECRAFT_1_14_3 = 490;
public static final int MINECRAFT_1_14_4 = 498;
public static final List<String> SUPPORTED_VERSIONS = Arrays.asList( public static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"1.8.x", "1.8.x",
"1.9.x", "1.9.x",
@ -51,7 +52,8 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_14, ProtocolConstants.MINECRAFT_1_14,
ProtocolConstants.MINECRAFT_1_14_1, ProtocolConstants.MINECRAFT_1_14_1,
ProtocolConstants.MINECRAFT_1_14_2, ProtocolConstants.MINECRAFT_1_14_2,
ProtocolConstants.MINECRAFT_1_14_3 ProtocolConstants.MINECRAFT_1_14_3,
ProtocolConstants.MINECRAFT_1_14_4
); );
public enum Direction public enum Direction

View File

@ -55,6 +55,7 @@ public abstract class EntityMap
case ProtocolConstants.MINECRAFT_1_14_1: case ProtocolConstants.MINECRAFT_1_14_1:
case ProtocolConstants.MINECRAFT_1_14_2: case ProtocolConstants.MINECRAFT_1_14_2:
case ProtocolConstants.MINECRAFT_1_14_3: case ProtocolConstants.MINECRAFT_1_14_3:
case ProtocolConstants.MINECRAFT_1_14_4:
return EntityMap_1_14.INSTANCE; return EntityMap_1_14.INSTANCE;
} }
throw new RuntimeException( "Version " + version + " has no entity map" ); throw new RuntimeException( "Version " + version + " has no entity map" );