Baubles no longer call onEquipped when equipped through right click, the functionality is instead delegated to onEquippedOrLoadedIntoWorld. Fixes the Ring of Odin/Ring of the Aesir allowing for infinite health. Closes #971

This commit is contained in:
Lizbeth Rika committed 2015-05-15 16:03:51 +01:00
1 parent 2c41e88628
commit fb044a5777
1 file changed
-2
@@ -64,8 +64,6 @@ public abstract class ItemBauble extends ItemMod implements IBauble, ICosmeticAt
par3EntityPlayer.inventory.setInventorySlotContents(par3EntityPlayer.inventory.currentItem, null);
}
onEquipped(par1ItemStack, par3EntityPlayer);
if(stackInSlot != null) {
((IBauble) stackInSlot.getItem()).onUnequipped(stackInSlot, par3EntityPlayer);
return stackInSlot.copy();