Fix the errors that were left, I commeneted our some code in SmelteryLogic for right now, Also changed the way ArrowEntity Sends the ChangeGameState

This commit is contained in:
Alexander committed 2014-02-03 10:02:49 -05:00
1 parent 840e0cee04
commit fffe2800bd
18 files changed
+45 -33

No files matched your search

@@ -56,7 +56,7 @@ public abstract class DualHarvestTool extends HarvestTool
}
@Override
public float getStrVsBlock (ItemStack stack, Block block, int meta)
public float getDigSpeed (ItemStack stack, Block block, int meta)
{
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
@@ -99,7 +99,7 @@ public abstract class DualHarvestTool extends HarvestTool
return 0.1f;
}
}
return super.getStrVsBlock(stack, block, meta);
return super.getDigSpeed(stack, block, meta);
}
public boolean canHarvestBlock (Block block)
@@ -58,7 +58,7 @@ public abstract class HarvestTool extends ToolCore
}
@Override
public float getStrVsBlock (ItemStack stack, Block block, int meta)
public float getDigSpeed (ItemStack stack, Block block, int meta)
{
if (!stack.hasTagCompound())
return 1.0f;
@@ -79,7 +79,7 @@ public abstract class HarvestTool extends ToolCore
{
return calculateStrength(tags, block, meta); //No issue if the harvest level is too low
}
return super.getStrVsBlock(stack, block, meta);
return super.getDigSpeed(stack, block, meta);
}
float calculateStrength (NBTTagCompound tags, Block block, int meta)
@@ -621,7 +621,7 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IBa
}
@Override
public float getStrVsBlock (ItemStack stack, Block block, int meta)
public float getDigSpeed (ItemStack stack, Block block, int meta)
{
NBTTagCompound tags = stack.getTagCompound();
if (tags.getCompoundTag("InfiTool").getBoolean("Broken"))
@@ -30,7 +30,7 @@ public abstract class Weapon extends ToolCore
}
@Override
public float getStrVsBlock (ItemStack stack, Block block, int meta)
public float getDigSpeed (ItemStack stack, Block block, int meta)
{
if (stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Broken"))
return 0.1f;