mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
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:
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();
|
||||
|
||||
Reference in new issue
Block a user