mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Don't allow sendPacket once disconnect has been processed.
This commit is contained in:
parent
3902c978d4
commit
2b62b33603
@ -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 New Issue
Block a user