Fix tools being able to break every block that doesn't require a tool in adventure mode

This commit is contained in:
Bernhard Bonigl committed 2015-01-30 16:31:09 +01:00
1 parent 8d3cfce638
commit cfebaef2c3
2 files changed
-25

No files matched your search

@@ -102,19 +102,9 @@ public abstract class HarvestTool extends ToolCore
@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 ()
{