From 281aecef4c91700d9471df989c7e0302edd80389 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 3 Nov 2020 07:00:00 +1100 Subject: [PATCH] Minecraft 1.16.4 support --- .../main/java/net/md_5/bungee/protocol/ProtocolConstants.java | 4 +++- proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java index da207d5f..bf316417 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java @@ -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 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 diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java index c5f45f84..53911d1c 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java @@ -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" );