From 1bb826109c57c7cd804b27bd5ba134f9edbcddda Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 23 Aug 2018 20:52:25 +1000 Subject: [PATCH] Minecraft 1.13.1 support --- protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java | 3 +++ .../main/java/net/md_5/bungee/protocol/ProtocolConstants.java | 4 +++- proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap.java | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java index 9509f8ee..06390751 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java @@ -376,6 +376,9 @@ public enum Protocol linkedProtocols.put( ProtocolConstants.MINECRAFT_1_12_1, Arrays.asList( ProtocolConstants.MINECRAFT_1_12_2 ) ); + linkedProtocols.put( ProtocolConstants.MINECRAFT_1_13, Arrays.asList( + ProtocolConstants.MINECRAFT_1_13_1 + ) ); } @Getter 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 b2dc9423..9a61fa4c 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 @@ -18,6 +18,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_12_1 = 338; public static final int MINECRAFT_1_12_2 = 340; public static final int MINECRAFT_1_13 = 393; + public static final int MINECRAFT_1_13_1 = 401; public static final List SUPPORTED_VERSIONS = Arrays.asList( "1.8.x", "1.9.x", @@ -37,7 +38,8 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_12, ProtocolConstants.MINECRAFT_1_12_1, ProtocolConstants.MINECRAFT_1_12_2, - ProtocolConstants.MINECRAFT_1_13 + ProtocolConstants.MINECRAFT_1_13, + ProtocolConstants.MINECRAFT_1_13_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 c65a8481..d1eebbf0 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 @@ -48,6 +48,7 @@ public abstract class EntityMap case ProtocolConstants.MINECRAFT_1_12_2: return EntityMap_1_12_1.INSTANCE; case ProtocolConstants.MINECRAFT_1_13: + case ProtocolConstants.MINECRAFT_1_13_1: return EntityMap_1_13.INSTANCE; } throw new RuntimeException( "Version " + version + " has no entity map" );