From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: killme Date: Sun, 12 Nov 2017 19:40:01 +0100 Subject: [PATCH] Prevent logins from being processed when the player has disconnected diff --git a/src/main/java/net/minecraft/server/LoginListener.java b/src/main/java/net/minecraft/server/LoginListener.java index c38255b43a9870bf8e20a3ca037f691934e5f146..63769f6d6e82f4c3758db0f82314c3cc28d44011 100644 --- a/src/main/java/net/minecraft/server/LoginListener.java +++ b/src/main/java/net/minecraft/server/LoginListener.java @@ -56,7 +56,11 @@ public class LoginListener implements PacketLoginInListener { } // Paper end if (this.g == LoginListener.EnumProtocolState.READY_TO_ACCEPT) { - this.c(); + // Paper start - prevent logins to be processed even though disconnect was called + if (networkManager.isConnected()) { + this.c(); + } + // Paper end } else if (this.g == LoginListener.EnumProtocolState.DELAY_ACCEPT) { EntityPlayer entityplayer = this.server.getPlayerList().getPlayer(this.i.getId());