Added null check for the sacrificial focus
This commit is contained in:
parent
eda7eec385
commit
6cd2d191e2
1 changed files with 88 additions and 85 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue