3
0
KCauldronX/patches/net/minecraft/network/PacketBuffer.java.patch
2015-03-22 20:38:04 +03:00

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);
}