This commit is contained in:
Jeremy Diamond committed 2015-02-16 22:12:05 -08:00
1 parent be2c7ea668
commit 13d13636e8
4 files changed
+4 -4

No files matched your search

@@ -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")){
@@ -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")){
@@ -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")){
@@ -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")){