From c866619f56ca2f2d254112ee1105ed588b15a8cc Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 7 Jul 2021 00:00:00 +1000 Subject: [PATCH] Minecraft 1.17.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 b9f1ff08..ce9e5298 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 @@ -35,6 +35,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_16_3 = 753; public static final int MINECRAFT_1_16_4 = 754; public static final int MINECRAFT_1_17 = 755; + public static final int MINECRAFT_1_17_1 = 756; public static final List SUPPORTED_VERSIONS; public static final List SUPPORTED_VERSION_IDS; @@ -80,7 +81,8 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_16_2, ProtocolConstants.MINECRAFT_1_16_3, ProtocolConstants.MINECRAFT_1_16_4, - ProtocolConstants.MINECRAFT_1_17 + ProtocolConstants.MINECRAFT_1_17, + ProtocolConstants.MINECRAFT_1_17_1 ); if ( SNAPSHOT_SUPPORT ) 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 93989ee9..3f18393f 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 @@ -69,6 +69,7 @@ public abstract class EntityMap case ProtocolConstants.MINECRAFT_1_16_4: return EntityMap_1_16_2.INSTANCE_1_16_2; case ProtocolConstants.MINECRAFT_1_17: + case ProtocolConstants.MINECRAFT_1_17_1: return EntityMap_1_16_2.INSTANCE_1_17; } throw new RuntimeException( "Version " + version + " has no entity map" );