2018-10-05 05:18:46 +02:00
|
|
|
From 6f93bb5e5f2bfb8117f9c93f7797e32d704293d4 Mon Sep 17 00:00:00 2001
|
2017-11-12 20:04:08 +01: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
|
2018-08-26 20:11:49 +02:00
|
|
|
index 10c82107d4..1380a14274 100644
|
2017-11-12 20:04:08 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/LoginListener.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/LoginListener.java
|
2018-07-18 02:08:13 +02:00
|
|
|
@@ -57,7 +57,11 @@ public class LoginListener implements PacketLoginInListener, ITickable {
|
2017-11-12 20:04:08 +01:00
|
|
|
}
|
|
|
|
// Paper end
|
|
|
|
if (this.g == LoginListener.EnumProtocolState.READY_TO_ACCEPT) {
|
|
|
|
- this.b();
|
|
|
|
+ // Paper start - prevent logins to be processed even though disconnect was called
|
|
|
|
+ if (networkManager.isConnected()) {
|
|
|
|
+ this.b();
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
} else if (this.g == LoginListener.EnumProtocolState.DELAY_ACCEPT) {
|
|
|
|
EntityPlayer entityplayer = this.server.getPlayerList().a(this.i.getId());
|
|
|
|
|
|
|
|
--
|
2018-09-29 01:31:59 +02:00
|
|
|
2.19.0
|
2017-11-12 20:04:08 +01:00
|
|
|
|