12 lines
445 B
Diff
12 lines
445 B
Diff
|
--- ../src-base/minecraft/net/minecraft/network/PacketBuffer.java
|
||
|
+++ ../src-work/minecraft/net/minecraft/network/PacketBuffer.java
|
||
|
@@ -98,7 +98,7 @@
|
||
|
|
||
|
public void writeItemStackToBuffer(ItemStack p_150788_1_) throws IOException
|
||
|
{
|
||
|
- if (p_150788_1_ == null)
|
||
|
+ if (p_150788_1_ == null || p_150788_1_.getItem() == null) // CraftBukkit - NPE fix itemstack.getItem()
|
||
|
{
|
||
|
this.writeShort(-1);
|
||
|
}
|