Fix harvest-type being ignored in digspeed-calculation. This meant that hatchets could break ores the same speed as wood blocks, picks wood with the same speed as stone, etc. #897

This commit is contained in:
Bernhard Bonigl committed 2014-08-21 21:31:03 +02:00
1 parent d0ce912498
commit ab14d03834
1 file changed
+1 -1
@@ -124,7 +124,7 @@ public abstract class HarvestTool extends ToolCore
return calculateStrength(tags, block, meta);
}
}
if (block.getHarvestLevel(meta) > 0)
if (this.getHarvestType().equals(block.getHarvestTool(meta)) && block.getHarvestLevel(meta) > 0)
{
return calculateStrength(tags, block, meta); // No issue if the
// harvest level is