From 21411af74dedc3846600c930fa8e907c30e9618b Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 21 Dec 2016 06:18:56 +1100 Subject: [PATCH] Add support for Minecraft 1.11.1 --- 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, 6 insertions(+), 2 deletions(-) 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 01f23441..9014e0ba 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 @@ -263,7 +263,8 @@ public enum Protocol ProtocolConstants.MINECRAFT_1_9_2, ProtocolConstants.MINECRAFT_1_9_4, ProtocolConstants.MINECRAFT_1_10, - ProtocolConstants.MINECRAFT_1_11 + ProtocolConstants.MINECRAFT_1_11, + ProtocolConstants.MINECRAFT_1_11_1 ) ); } 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 f3c13bf4..9929ef47 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 @@ -13,6 +13,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_9_4 = 110; public static final int MINECRAFT_1_10 = 210; public static final int MINECRAFT_1_11 = 315; + public static final int MINECRAFT_1_11_1 = 316; public static final List SUPPORTED_VERSIONS = Arrays.asList( "1.8.x", "1.9.x", @@ -25,7 +26,8 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_9_2, ProtocolConstants.MINECRAFT_1_9_4, ProtocolConstants.MINECRAFT_1_10, - ProtocolConstants.MINECRAFT_1_11 + ProtocolConstants.MINECRAFT_1_11, + ProtocolConstants.MINECRAFT_1_11_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 34ddc19f..a8728bb3 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 @@ -36,6 +36,7 @@ public abstract class EntityMap case ProtocolConstants.MINECRAFT_1_10: return EntityMap_1_10.INSTANCE; case ProtocolConstants.MINECRAFT_1_11: + case ProtocolConstants.MINECRAFT_1_11_1: return EntityMap_1_11.INSTANCE; } throw new RuntimeException( "Version " + version + " has no entity map" );