mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-10-25 20:32:29 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user