3
0
KCauldronX/patches/net/minecraft/network/PacketBuffer.java.patch

12 lines
445 B
Diff
Raw Normal View History

2015-03-22 17:38:04 +00:00
--- ../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);
}