mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-10-26 14:33:50 +00:00
Whoops, left this out.
This commit is contained in:
1 parent
bd5c5e4f75
commit
d536b1077e
1 file changed
+9
-1
@@ -246,7 +246,15 @@ public class LumberAxe extends AOEHarvestTool
|
||||
}
|
||||
|
||||
// break it, wooo!
|
||||
tool.breakExtraBlock(player.worldObj, x, y, z, 0, player, x, y, z);
|
||||
boolean cancelHarvest = false;
|
||||
for (ActiveToolMod mod : TConstructRegistry.activeModifiers) {
|
||||
if (mod.beforeBlockBreak(tool, stack, x, y, z, player)) {
|
||||
cancelHarvest = true;
|
||||
}
|
||||
}
|
||||
if(!cancelHarvest)
|
||||
tool.breakExtraBlock(player.worldObj, x, y, z, 0, player, x, y, z);
|
||||
|
||||
left--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user