From 13a900e7dd015555e419313a227324c369ff0a65 Mon Sep 17 00:00:00 2001 From: Adubbz G Date: Sun, 23 Jun 2013 07:34:48 +1000 Subject: [PATCH] Fixed #8 --- src/minecraft/biomesoplenty/handlers/EntityEventHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/minecraft/biomesoplenty/handlers/EntityEventHandler.java b/src/minecraft/biomesoplenty/handlers/EntityEventHandler.java index f8f72283e..b7f590371 100644 --- a/src/minecraft/biomesoplenty/handlers/EntityEventHandler.java +++ b/src/minecraft/biomesoplenty/handlers/EntityEventHandler.java @@ -135,12 +135,13 @@ public class EntityEventHandler public void entityInteract(EntityInteractEvent event) { ItemStack itemstack = event.entityPlayer.getCurrentEquippedItem(); - int itemDamage = itemstack.getItemDamage(); Entity entity = event.target; EntityPlayer player = event.entityPlayer; if (itemstack != null) { + int itemDamage = itemstack.getItemDamage(); + if (itemstack.itemID == Items.soulManipulator.get().itemID && itemstack.getItemDamage() == 2) { if (entity instanceof EntityEnderman)