From 9a39a9f6f032144bc06d3a04182ff25672a81002 Mon Sep 17 00:00:00 2001 From: Nicholas Ignoffo Date: Mon, 25 Jul 2016 23:08:24 -0700 Subject: [PATCH] Cleaner repairable check for Living Armour --- .../java/WayofTime/bloodmagic/item/armour/ItemLivingArmour.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/bloodmagic/item/armour/ItemLivingArmour.java b/src/main/java/WayofTime/bloodmagic/item/armour/ItemLivingArmour.java index cc26a443..1e7095b9 100644 --- a/src/main/java/WayofTime/bloodmagic/item/armour/ItemLivingArmour.java +++ b/src/main/java/WayofTime/bloodmagic/item/armour/ItemLivingArmour.java @@ -108,7 +108,7 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP @Override public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) { - return (ModItems.itemComponent == repair.getItem() && repair.getItemDamage() == ItemComponent.getStack(ItemComponent.REAGENT_BINDING).getItemDamage()) ? true : super.getIsRepairable(toRepair, repair); + return ItemStack.areItemsEqual(repair, ItemComponent.getStack(ItemComponent.REAGENT_BINDING)) || super.getIsRepairable(toRepair, repair); } @Override