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
1 changed files with 88 additions and 85 deletions

View File

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