Call the callbacks on tools when breaking blocks when breaking extra blocks with AOE tools. Fixes extra-blocks harvested not using up durability. #1089

This commit is contained in:
Bernhard Bonigl committed 2014-10-15 23:36:27 +02:00
1 parent c0e46f151b
commit cbe57a08e1
1 file changed
+4
@@ -258,6 +258,10 @@ public abstract class HarvestTool extends ToolCore
}
return;
}
// callback to the tool the player uses. Called on both sides. This damages the tool n stuff.
player.getCurrentEquippedItem().func_150999_a(world, block, x, y, z, player);
// server sided handling
if (!world.isRemote) {
// serverside we reproduce ItemInWorldManager.tryHarvestBlock