From 13d13636e8ae4d89d12542d6bb1015b022190f36 Mon Sep 17 00:00:00 2001 From: Jeremy Diamond Date: Mon, 16 Feb 2015 22:12:05 -0800 Subject: [PATCH] Stuff --- .../java/fox/spiteful/forbidden/items/tools/ItemMorphAxe.java | 2 +- .../fox/spiteful/forbidden/items/tools/ItemMorphPickaxe.java | 2 +- .../fox/spiteful/forbidden/items/tools/ItemMorphShovel.java | 2 +- .../java/fox/spiteful/forbidden/items/tools/ItemMorphSword.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphAxe.java b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphAxe.java index 804e895..7f728fd 100644 --- a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphAxe.java +++ b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphAxe.java @@ -53,7 +53,7 @@ public class ItemMorphAxe extends ItemAxe implements IRepairable, IWarpingGear { @Override public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player) { - if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage() - itemstack.getItemDamage() > 5) { + if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage(itemstack) - itemstack.getItemDamage() > 5) { NBTTagCompound tags = itemstack.getTagCompound(); byte phase = tags.getByte("phase"); if(tags.hasKey("ench")){ diff --git a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphPickaxe.java b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphPickaxe.java index 944cbe3..a386be0 100644 --- a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphPickaxe.java +++ b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphPickaxe.java @@ -67,7 +67,7 @@ public class ItemMorphPickaxe extends ItemPickaxe implements IRepairable, IWarpi @Override public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player) { - if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage() - itemstack.getItemDamage() > 5) { + if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage(itemstack) - itemstack.getItemDamage() > 5) { NBTTagCompound tags = itemstack.getTagCompound(); byte phase = tags.getByte("phase"); if(tags.hasKey("ench")){ diff --git a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphShovel.java b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphShovel.java index 077c0ee..306b866 100644 --- a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphShovel.java +++ b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphShovel.java @@ -62,7 +62,7 @@ public class ItemMorphShovel extends ItemSpade implements IRepairable, IWarpingG @Override public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player) { - if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage() - itemstack.getItemDamage() > 5) { + if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage(itemstack) - itemstack.getItemDamage() > 5) { NBTTagCompound tags = itemstack.getTagCompound(); byte phase = tags.getByte("phase"); if(tags.hasKey("ench")){ diff --git a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphSword.java b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphSword.java index 0af6b7b..1c844d3 100644 --- a/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphSword.java +++ b/src/main/java/fox/spiteful/forbidden/items/tools/ItemMorphSword.java @@ -54,7 +54,7 @@ public class ItemMorphSword extends ItemSword implements IRepairable, IWarpingGe @Override public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player) { - if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage() - itemstack.getItemDamage() > 5) { + if (player.isSneaking() && itemstack.hasTagCompound() && getMaxDamage(itemstack) - itemstack.getItemDamage() > 5) { NBTTagCompound tags = itemstack.getTagCompound(); byte phase = tags.getByte("phase"); if(tags.hasKey("ench")){