2020-05-01 22:03:47 +00:00
|
|
|
From 75dd02cfdc3ee1d52e1e6f10878188f716197262 Mon Sep 17 00:00:00 2001
|
2017-11-12 19:04:08 +00:00
|
|
|
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/LoginListener.java b/src/main/java/net/minecraft/server/LoginListener.java
|
2020-05-01 22:03:47 +00:00
|
|
|
index 758fe77489..1fb609dcfc 100644
|
2017-11-12 19:04:08 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/LoginListener.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/LoginListener.java
|
2019-04-27 23:23:53 +00:00
|
|
|
@@ -56,7 +56,11 @@ public class LoginListener implements PacketLoginInListener {
|
2017-11-12 19:04:08 +00:00
|
|
|
}
|
|
|
|
// Paper end
|
|
|
|
if (this.g == LoginListener.EnumProtocolState.READY_TO_ACCEPT) {
|
2019-04-27 23:23:53 +00:00
|
|
|
- this.c();
|
2017-11-12 19:04:08 +00:00
|
|
|
+ // Paper start - prevent logins to be processed even though disconnect was called
|
|
|
|
+ if (networkManager.isConnected()) {
|
2019-04-27 23:23:53 +00:00
|
|
|
+ this.c();
|
2017-11-12 19:04:08 +00:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
} else if (this.g == LoginListener.EnumProtocolState.DELAY_ACCEPT) {
|
|
|
|
EntityPlayer entityplayer = this.server.getPlayerList().a(this.i.getId());
|
|
|
|
|
|
|
|
--
|
2020-05-01 22:03:47 +00:00
|
|
|
2.26.2
|
2017-11-12 19:04:08 +00:00
|
|
|
|