Skip to content

Commit

Permalink
Merge pull request #539 from Glassmaker/patch-3
Browse files Browse the repository at this point in the history
Fix for Harvest tools speed issues
  • Loading branch information
progwml6 committed Mar 19, 2014
2 parents 57cecd1 + 0f47080 commit 82cacb0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/main/java/tconstruct/library/tools/DualHarvestTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public float getDigSpeed (ItemStack stack, Block block, int meta)
}

@Override
public boolean canHarvestBlock (Block block)
public boolean func_150897_b (Block block)
{
if (block.getMaterial().isToolNotRequired())
{
Expand All @@ -125,6 +125,12 @@ public boolean canHarvestBlock (Block block)
return false;
}

@Override
public boolean canHarvestBlock(Block block, ItemStack itemStack)
{
return func_150897_b(block);
}

@Override
public String[] toolCategories ()
{
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/tconstruct/library/tools/HarvestTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ float calculateStrength (NBTTagCompound tags, Block block, int meta)
return 0.1f;
}

public boolean canHarvestBlock (Block block)
@Override
public boolean func_150897_b (Block block)
{
if (block.getMaterial().isToolNotRequired())
{
Expand All @@ -187,6 +188,12 @@ public boolean canHarvestBlock (Block block)
return false;
}

@Override
public boolean canHarvestBlock(Block block, ItemStack itemStack)
{
return func_150897_b(block);
}

@Override
public String[] toolCategories ()
{
Expand Down

0 comments on commit 82cacb0

Please sign in to comment.