From 8fda0606118e4b8875ccb2f6b755e0eaa6b0c6d8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 28 May 2019 06:30:00 +1000 Subject: [PATCH] Minecraft 1.14.2 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 67e212e22..e5ecdee59 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 @@ -22,6 +22,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_13_2 = 404; public static final int MINECRAFT_1_14 = 477; public static final int MINECRAFT_1_14_1 = 480; + public static final int MINECRAFT_1_14_2 = 485; public static final List SUPPORTED_VERSIONS = Arrays.asList( "1.8.x", "1.9.x", @@ -47,7 +48,8 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_13_1, ProtocolConstants.MINECRAFT_1_13_2, ProtocolConstants.MINECRAFT_1_14, - ProtocolConstants.MINECRAFT_1_14_1 + ProtocolConstants.MINECRAFT_1_14_1, + ProtocolConstants.MINECRAFT_1_14_2 ); 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 1eb539a80..43c58d0bd 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 @@ -53,6 +53,7 @@ public abstract class EntityMap return EntityMap_1_13.INSTANCE; case ProtocolConstants.MINECRAFT_1_14: case ProtocolConstants.MINECRAFT_1_14_1: + case ProtocolConstants.MINECRAFT_1_14_2: return EntityMap_1_14.INSTANCE; } throw new RuntimeException( "Version " + version + " has no entity map" );