From 672db9fe47a48f5e1aad049ed29043ee9b8a1bf7 Mon Sep 17 00:00:00 2001 From: Outfluencer Date: Sun, 13 Oct 2024 00:38:59 +0200 Subject: [PATCH] #3753, #3754: Don't disconnect during login if the player is on a server --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 2 +- 1 file 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 0f158a655..b58a01c6d 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -138,7 +138,7 @@ public class ServerConnector extends PacketHandler { user.getPendingConnects().remove( target ); - if ( !obsolete && user.getPendingConnects().isEmpty() && thisState == State.LOGIN_SUCCESS ) + if ( user.getServer() == null && !obsolete && user.getPendingConnects().isEmpty() && thisState == State.LOGIN_SUCCESS ) { // this is called if we get disconnected but not have received any response after we send the handshake // in this case probably an exception was thrown because the handshake could not be read correctly