From bb0bb7199beee0d0ad692187d32436413b86df43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Lei=C3=9F?= Date: Thu, 3 Mar 2016 20:47:30 +0100 Subject: [PATCH] Fixed some issues happened while merging. --- .../java/net/md_5/bungee/protocol/Protocol.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 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 97eacd9fd3..8bef08d62f 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 @@ -59,7 +59,7 @@ public enum Protocol TO_CLIENT.registerPacket( 0x01, 0x23, Login.class ); TO_CLIENT.registerPacket( 0x02, 0x0F, Chat.class ); TO_CLIENT.registerPacket( 0x07, 0x33, Respawn.class ); - TO_CLIENT.registerPacket( 0x0C, 0x0C, BossBar.class, true ); + TO_CLIENT.registerPacket( 0x0C, 0x0C, BossBar.class, true, false ); TO_CLIENT.registerPacket( 0x38, 0x2D, PlayerListItem.class ); // PlayerInfo TO_CLIENT.registerPacket( 0x3A, 0x0E, TabCompleteResponse.class ); TO_CLIENT.registerPacket( 0x3B, 0x3F, ScoreboardObjective.class ); @@ -69,7 +69,7 @@ public enum Protocol TO_CLIENT.registerPacket( 0x3F, 0x18, PluginMessage.class ); TO_CLIENT.registerPacket( 0x40, 0x1A, Kick.class ); TO_CLIENT.registerPacket( 0x45, 0x45, Title.class ); - TO_CLIENT.registerPacket( 0x46, 0x46, SetCompression.class, true ); + TO_CLIENT.registerPacket( 0x46, 0x46, SetCompression.class, false , true ); TO_CLIENT.registerPacket( 0x47, 0x48, PlayerListHeaderFooter.class ); TO_SERVER.registerPacket( 0x00, 0x0B, KeepAlive.class ); @@ -175,11 +175,11 @@ protected final void registerPacket(int id, Class packe protected final void registerPacket(int id, int newId, Class packetClass) { - registerPacket( id, newId, packetClass, false ); + registerPacket( id, newId, packetClass, false , false); } - protected final void registerPacket(int id, int newId, Class packetClass, boolean newOnly) + protected final void registerPacket(int id, int newId, Class packetClass, boolean newOnly, boolean oldOnly) { try { @@ -195,16 +195,17 @@ protected final void registerPacket(int id, int newId, Class