mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
Check if packet is null before checking priority. Fixes BUKKIT-1579
This commit is contained in:
@@ -720,7 +720,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
this.networkManager.queue(new Packet3Chat(line));
|
this.networkManager.queue(new Packet3Chat(line));
|
||||||
}
|
}
|
||||||
packet = null;
|
packet = null;
|
||||||
} else if (packet.lowPriority == true) {
|
} else if (packet != null && packet.lowPriority == true) {
|
||||||
// Reroute all low-priority packets through to compression thread.
|
// Reroute all low-priority packets through to compression thread.
|
||||||
ChunkCompressionThread.sendPacket(this.player, packet);
|
ChunkCompressionThread.sendPacket(this.player, packet);
|
||||||
packet = null;
|
packet = null;
|
||||||
|
Reference in New Issue
Block a user