mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +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
@@ -29,8 +29,12 @@ public abstract class DualHarvestTool extends HarvestTool
|
||||
Block block = player.worldObj.getBlock(x, y, z);
|
||||
if (block == null || block == Blocks.air)
|
||||
return false;
|
||||
int hlvl = block.getHarvestLevel(meta);
|
||||
int shlvl = block.getHarvestLevel(meta);
|
||||
int hlvl = -1;
|
||||
int shlvl = -1;
|
||||
if (block.getHarvestTool(meta).equals(getHarvestType()))
|
||||
hlvl = block.getHarvestLevel(meta);
|
||||
if (block.getHarvestTool(meta).equals(getSecondHarvestType()))
|
||||
shlvl = block.getHarvestLevel(meta);
|
||||
|
||||
if (hlvl <= tags.getInteger("HarvestLevel") && shlvl <= tags.getInteger("HarvestLevel2"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user