2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: killme <killme-git@ibts.me>
|
|
|
|
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
|
2023-03-14 19:59:51 +01:00
|
|
|
index 06f3e1f42da85a54187f3decc35c338a3eeb8de4..9607c3297c1a977cb33fb730eacb35ce9604b74c 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
2022-12-07 19:52:24 +01:00
|
|
|
@@ -78,7 +78,11 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
// 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());
|
|
|
|
|