Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
Filter invalid ItemStacks from Packets.
Invalid ItemStacks are causing Fireworks to disconnect players and prevent them from reconnecting
Dieser Commit ist enthalten in:
Ursprung
23b6764374
Commit
686807e387
@ -210,7 +210,7 @@ public abstract class Packet {
|
||||
}
|
||||
|
||||
public static void a(ItemStack itemstack, DataOutputStream dataoutputstream) throws IOException { // CraftBukkit - throws IOException
|
||||
if (itemstack == null) {
|
||||
if (itemstack == null || itemstack.getItem() == null) { // CraftBukkit - NPE fix itemstack.getItem()
|
||||
dataoutputstream.writeShort(-1);
|
||||
} else {
|
||||
dataoutputstream.writeShort(itemstack.id);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren