Clear Packet Queue on Disconnect

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2015-07-22 19:04:37 +10:00
parent c4f3fcfce9
commit 93fea68749
2 changed files with 9 additions and 1 deletions

View File

@@ -197,7 +197,7 @@
public void send(Packet<?> packet, @Nullable PacketSendListener callbacks) {
+ // CraftBukkit start
+ if (packet == null) {
+ if (packet == null || this.processedDisconnect) { // Spigot
+ return;
+ } else if (packet instanceof ClientboundSetDefaultSpawnPositionPacket) {
+ ClientboundSetDefaultSpawnPositionPacket packet6 = (ClientboundSetDefaultSpawnPositionPacket) packet;