From bdbb1413cbaf8ea24f5bb5d55b98b72983974cb2 Mon Sep 17 00:00:00 2001 From: Prototik Date: Wed, 27 May 2015 18:44:16 +0700 Subject: [PATCH] Add some checks to entityitem :) --- patches/net/minecraft/entity/item/EntityItem.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/net/minecraft/entity/item/EntityItem.java.patch b/patches/net/minecraft/entity/item/EntityItem.java.patch index 26eb7db..3ecec4f 100644 --- a/patches/net/minecraft/entity/item/EntityItem.java.patch +++ b/patches/net/minecraft/entity/item/EntityItem.java.patch @@ -307,6 +307,6 @@ + @Override + public boolean entityAllowedToSpawn() { + ItemStack stack = getDataWatcher().getWatchableObjectItemStack(10); -+ return stack != null && stack.stackSize > 0; ++ return stack != null && stack.getItem() != null && stack.stackSize > 0; + } }