mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Don't allow sendPacket once disconnect has been processed.
This commit is contained in:
parent
3902c978d4
commit
2b62b33603
1 changed files with 13 additions and 0 deletions
|
@ -16,4 +16,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
} else {
|
||||
NetworkManager.g.warn("handleDisconnection() called twice");
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
|
||||
}
|
||||
|
||||
// CraftBukkit start
|
||||
- if (packet == null) {
|
||||
+ if (packet == null || this.processedDisconnect) { // Spigot
|
||||
return;
|
||||
} else if (packet instanceof PacketPlayOutSpawnPosition) {
|
||||
PacketPlayOutSpawnPosition packet6 = (PacketPlayOutSpawnPosition) packet;
|
||||
--
|
Loading…
Reference in a new issue