From 4d51d165126a5edccbd0ff0e230d8035e65766df Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 8 Jun 2013 09:45:45 +1000 Subject: [PATCH] Fix mods like wecui not working after switching servers. #364 --- .../java/net/md_5/bungee/connection/UpstreamBridge.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index 99c88ced9..67ff66dd3 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -121,6 +121,12 @@ public class UpstreamBridge extends PacketHandler { throw new CancelSendSignal(); } + + // TODO: Unregister as well? + if ( pluginMessage.getTag().equals( "REGISTER" ) ) + { + con.getPendingConnection().getLoginMessages().add( pluginMessage ); + } } @Override