2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 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
|
2020-08-25 04:22:08 +02:00
|
|
|
index e7e2566a019441b9b95ae5f38c75134e451f227f..05583872f118346f6d7e1cd0f2304966ab65b5d9 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
|
2020-06-25 15:11:48 +02:00
|
|
|
@@ -55,7 +55,11 @@ public class LoginListener implements PacketLoginInListener {
|
2017-11-12 20:04:08 +01:00
|
|
|
}
|
|
|
|
// Paper end
|
|
|
|
if (this.g == LoginListener.EnumProtocolState.READY_TO_ACCEPT) {
|
2019-04-28 01:23:53 +02:00
|
|
|
- this.c();
|
2017-11-12 20:04:08 +01:00
|
|
|
+ // Paper start - prevent logins to be processed even though disconnect was called
|
|
|
|
+ if (networkManager.isConnected()) {
|
2019-04-28 01:23:53 +02:00
|
|
|
+ this.c();
|
2017-11-12 20:04:08 +01:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
} else if (this.g == LoginListener.EnumProtocolState.DELAY_ACCEPT) {
|
2020-06-25 15:11:48 +02:00
|
|
|
EntityPlayer entityplayer = this.server.getPlayerList().getPlayer(this.i.getId());
|
2017-11-12 20:04:08 +01:00
|
|
|
|