Fix possible crash with broken frying pans/battlesigns #1372

This commit is contained in:
Bernhard Bonigl committed 2015-01-30 16:04:50 +01:00
1 parent 2812f80173
commit 8d3cfce638
1 file changed
+1 -1
@@ -205,7 +205,7 @@ public class EquipBlock extends InventoryBlock
{
EquipLogic logic = (EquipLogic) te;
ItemStack stack = logic.getEquipmentItem();
if (stack != null)
if (stack != null && stack.hasTagCompound() && stack.getTagCompound().hasKey("InfiTool"))
{
NBTTagCompound tag = stack.getTagCompound().getCompoundTag("InfiTool");