diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java b/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java index fb568bae..c4ade71e 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemBoundSword.java @@ -88,7 +88,8 @@ public class ItemBoundSword extends ItemSword implements IBindable, IActivatable @Override @SideOnly(Side.CLIENT) - public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) { + public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) + { subItems.add(Utils.setUnbreakable(new ItemStack(itemIn))); } diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java b/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java index b964b641..3fb1beb3 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemBoundTool.java @@ -81,7 +81,8 @@ public class ItemBoundTool extends ItemTool implements IBindable, IActivatable @Override @SideOnly(Side.CLIENT) - public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) { + public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) + { subItems.add(Utils.setUnbreakable(new ItemStack(itemIn))); } diff --git a/src/main/java/WayofTime/bloodmagic/util/Utils.java b/src/main/java/WayofTime/bloodmagic/util/Utils.java index 8c75a0ed..edc14c94 100644 --- a/src/main/java/WayofTime/bloodmagic/util/Utils.java +++ b/src/main/java/WayofTime/bloodmagic/util/Utils.java @@ -174,7 +174,8 @@ public class Utils return itemHandler; } - public static ItemStack setUnbreakable(ItemStack stack) { + public static ItemStack setUnbreakable(ItemStack stack) + { NBTHelper.checkNBT(stack); stack.getTagCompound().setBoolean("Unbreakable", true); return stack;