3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Check if packet is null before checking priority. Fixes BUKKIT-1579

Dieser Commit ist enthalten in:
Travis Watkins 2012-04-25 10:34:53 -05:00
Ursprung efab1e8b18
Commit 0153fe1f33

Datei anzeigen

@ -720,7 +720,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
this.networkManager.queue(new Packet3Chat(line));
}
packet = null;
} else if (packet.lowPriority == true) {
} else if (packet != null && packet.lowPriority == true) {
// Reroute all low-priority packets through to compression thread.
ChunkCompressionThread.sendPacket(this.player, packet);
packet = null;