fix tools not checking harvest type on block breaking

This commit is contained in:
Progwml6 committed 2014-02-14 22:50:51 -05:00
1 parent e707916612
commit a8d8a568fa
3 files changed
+10 -7

No files matched your search

@@ -33,8 +33,10 @@ public abstract class HarvestTool extends ToolCore
//Block block = Block.blocksList[bID];
if (block == null || block == Blocks.air)
return false;
int hlvl = block.getHarvestLevel(meta);
int hlvl = -1;
if (block.getHarvestTool(meta).equals(getHarvestType()))
hlvl = block.getHarvestLevel(meta);
// int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
if (hlvl <= tags.getInteger("HarvestLevel"))
{
boolean cancelHarvest = false;