From c5f839c9add74550a02d98d0b9f1cacf5baedbfa Mon Sep 17 00:00:00 2001 From: Polo1K Date: Thu, 25 Jun 2020 08:08:51 +1000 Subject: [PATCH] #2862: Minecraft 1.16.1 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 3248d18a..7298b86c 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 @@ -29,6 +29,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_15_1 = 575; public static final int MINECRAFT_1_15_2 = 578; public static final int MINECRAFT_1_16 = 735; + public static final int MINECRAFT_1_16_1 = 736; public static final List SUPPORTED_VERSIONS = Arrays.asList( "1.8.x", "1.9.x", @@ -63,7 +64,8 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_15, ProtocolConstants.MINECRAFT_1_15_1, ProtocolConstants.MINECRAFT_1_15_2, - ProtocolConstants.MINECRAFT_1_16 + ProtocolConstants.MINECRAFT_1_16, + ProtocolConstants.MINECRAFT_1_16_1 ); 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 76fcce9f..2622b738 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 @@ -62,6 +62,7 @@ public abstract class EntityMap case ProtocolConstants.MINECRAFT_1_15_2: return EntityMap_1_15.INSTANCE; case ProtocolConstants.MINECRAFT_1_16: + case ProtocolConstants.MINECRAFT_1_16_1: return EntityMap_1_16.INSTANCE; } throw new RuntimeException( "Version " + version + " has no entity map" );