#3753, #3754: Don't disconnect during login if the player is on a server

This commit is contained in:
Outfluencer 2024-10-13 00:38:59 +02:00 committed by GitHub
parent 2bacf6572b
commit 672db9fe47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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