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/network/ServerLoginPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java index c37a1b25638dba2b4964f73e821d989302ad415a..f97552c5e62124cab00301daee2fd41069fb802c 100644 --- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java +++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java @@ -84,7 +84,11 @@ public class ServerLoginPacketListenerImpl implements TickablePacketListener, Se } // Paper end if (this.state == ServerLoginPacketListenerImpl.State.READY_TO_ACCEPT) { - this.handleAcceptedLogin(); + // Paper start - prevent logins to be processed even though disconnect was called + if (connection.isConnected()) { + this.handleAcceptedLogin(); + } + // Paper end } else if (this.state == ServerLoginPacketListenerImpl.State.DELAY_ACCEPT) { ServerPlayer entityplayer = this.server.getPlayerList().getPlayer(this.gameProfile.getId());