Added null check for the sacrificial focus

This commit is contained in:
Adubbz 2013-07-14 20:03:06 +10:00
parent eda7eec385
commit 6cd2d191e2

View file

@ -79,6 +79,8 @@ public class BlockBOPGlass extends Block
ItemStack equippedItem = player.getCurrentEquippedItem();
Random rand = new Random();
if (equippedItem != null)
{
if (equippedItem.itemID == Items.soulManipulator.get().itemID)
{
if (equippedItem.getItemDamage() == 0)
@ -187,6 +189,7 @@ public class BlockBOPGlass extends Block
}
}
}
}
return false;
}