Skip to content

Commit

Permalink
Fix tools being able to break every block that doesn't require a tool…
Browse files Browse the repository at this point in the history
… in adventure mode
  • Loading branch information
bonii-xx committed Jan 30, 2015
1 parent 8d3cfce commit cfebaef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
15 changes: 0 additions & 15 deletions src/main/java/tconstruct/library/tools/DualHarvestTool.java
Expand Up @@ -74,21 +74,6 @@ public float getDigSpeed (ItemStack stack, Block block, int meta)
return super.getDigSpeed(stack, block, meta);
}

@Override
public boolean func_150897_b (Block block)
{
if (block.getMaterial().isToolNotRequired())
return true;

return isEffective(block.getMaterial());
}

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

@Override
public boolean isEffective (Material material)
{
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/tconstruct/library/tools/HarvestTool.java
Expand Up @@ -102,19 +102,9 @@ public float stoneboundModifier ()
@Override
public boolean func_150897_b (Block block)
{
if (block.getMaterial().isToolNotRequired())
{
return true;
}
return isEffective(block.getMaterial());
}

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

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

0 comments on commit cfebaef

Please sign in to comment.