2023-09-21 23:04:51 +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
|
2024-06-13 20:09:28 +02:00
|
|
|
index d1a05c93ba7b9d1cb3427a4a90346b4364784846..3bcce44fd8f7964a2f9b0d9c778b995975a8c049 100644
|
2023-09-21 23:04:51 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
2024-06-13 20:09:28 +02:00
|
|
|
@@ -104,7 +104,9 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
2023-09-21 23:04:51 +02:00
|
|
|
}
|
2024-01-22 19:01:10 +01:00
|
|
|
// Paper end - Do not allow logins while the server is shutting down
|
2023-09-21 23:04:51 +02:00
|
|
|
if (this.state == ServerLoginPacketListenerImpl.State.VERIFYING) {
|
|
|
|
+ if (this.connection.isConnected()) { // Paper - prevent logins to be processed even though disconnect was called
|
|
|
|
this.verifyLoginAndFinishConnectionSetup((GameProfile) Objects.requireNonNull(this.authenticatedProfile));
|
2024-01-22 18:04:55 +01:00
|
|
|
+ } // Paper - prevent logins to be processed even though disconnect was called
|
2023-09-21 23:04:51 +02:00
|
|
|
}
|
|
|
|
|
2024-04-24 03:25:14 +02:00
|
|
|
// CraftBukkit start
|