mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 06:24:37 +00:00
fix tools not checking harvest type on block breaking
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user