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.
This commit is contained in:
David Vierra authored and bartimaeusnek committed 2018-02-18 02:04:03 +01:00
1 parent 48a1cdbe07
commit eb36cf02dd
1 file changed
+1 -1
@@ -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);
}