mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Fix tools being able to break every block that doesn't require a tool in adventure mode
This commit is contained in:
1 parent
8d3cfce638
commit
cfebaef2c3
2 files changed
-25
No files matched your search
@@ -74,21 +74,6 @@ public abstract class DualHarvestTool extends HarvestTool
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user