From 68815976929ab7eeff461e4d067bad1fdaf91835 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 24 Mar 2013 11:46:37 +1100 Subject: [PATCH] Fix issue #156 - actually register packet for reading --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 1 - proxy/src/main/java/net/md_5/bungee/packet/DefinedPacket.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index 869cb3bc..b0da801c 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -81,7 +81,6 @@ public class ServerConnector extends PacketHandler ch.write( user.settings ); } - synchronized ( user.getSwitchMutex() ) { if ( user.getServer() == null ) diff --git a/proxy/src/main/java/net/md_5/bungee/packet/DefinedPacket.java b/proxy/src/main/java/net/md_5/bungee/packet/DefinedPacket.java index 4a3c4c77..e30a5fc3 100644 --- a/proxy/src/main/java/net/md_5/bungee/packet/DefinedPacket.java +++ b/proxy/src/main/java/net/md_5/bungee/packet/DefinedPacket.java @@ -225,6 +225,7 @@ public abstract class DefinedPacket implements DataOutput classes[0x03] = Packet3Chat.class; classes[0x09] = Packet9Respawn.class; classes[0xC9] = PacketC9PlayerListItem.class; + classes[0xCC] = PacketCCSettings.class; classes[0xCD] = PacketCDClientStatus.class; classes[0xCE] = PacketCEScoreboardObjective.class; classes[0xCF] = PacketCFScoreboardScore.class;