From 1f24591a0d1b8e746928782e32658b86f066f02d Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 18 Dec 2019 08:00:00 +1100 Subject: [PATCH] Minecraft 1.15.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 4ba561a4..b91d191e 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 @@ -26,6 +26,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_14_3 = 490; public static final int MINECRAFT_1_14_4 = 498; public static final int MINECRAFT_1_15 = 573; + public static final int MINECRAFT_1_15_1 = 575; public static final List SUPPORTED_VERSIONS = Arrays.asList( "1.8.x", "1.9.x", @@ -56,7 +57,8 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_14_2, ProtocolConstants.MINECRAFT_1_14_3, ProtocolConstants.MINECRAFT_1_14_4, - ProtocolConstants.MINECRAFT_1_15 + ProtocolConstants.MINECRAFT_1_15, + ProtocolConstants.MINECRAFT_1_15_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 ff59c824..983f4ce6 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 @@ -58,6 +58,7 @@ public abstract class EntityMap case ProtocolConstants.MINECRAFT_1_14_4: return EntityMap_1_14.INSTANCE; case ProtocolConstants.MINECRAFT_1_15: + case ProtocolConstants.MINECRAFT_1_15_1: return EntityMap_1_15.INSTANCE; } throw new RuntimeException( "Version " + version + " has no entity map" );