From eb36cf02ddd750d505ebdafcd5f8c613a540d059 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 17 Feb 2018 15:04:03 -1000 Subject: [PATCH] Fix Remedium Talisman breaking other items (#6) * Fix Remedium Talisman breaking other items When the Remedium Talisman breaks, it always breaks the item in the first ring slot instead. `BaubleType.AMULET.ordinal()`, whose value is 1, is incorrect. The `BaubleType` Enum is not bauble slot numbers. The correct slot number for the amulet slot is 0. I don't see any constants to use for the amulet slots. * Added comment Added this comment in short to source. --- .../thaumic/tinkerer/common/item/ItemCleansingTalisman.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java b/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java index 1b784a56..eda823f6 100644 --- a/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java +++ b/src/main/java/thaumic/tinkerer/common/item/ItemCleansingTalisman.java @@ -174,7 +174,7 @@ public class ItemCleansingTalisman extends ItemBase implements IBauble { par1ItemStack.damageItem(damage, player); if(par1ItemStack.getItemDamage()<=0) { - BaublesApi.getBaubles((EntityPlayer) player).setInventorySlotContents(BaubleType.AMULET.ordinal(),null); + BaublesApi.getBaubles((EntityPlayer) player).setInventorySlotContents(0,null); //Slot 0 = Talisman Slot } par2World.playSoundAtEntity(player, "thaumcraft:wand", 0.3F, 0.1F); }