1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-01 18:17:55 +00:00

Change turtle block breaking to call onBreak

Fixes #25
This commit is contained in:
Danny Wensley
2021-01-20 14:29:36 +00:00
parent b34d8387d9
commit 86705787f0

View File

@@ -210,7 +210,7 @@ public class TurtleTool extends AbstractTurtleUpgrade {
// Destroy the block // Destroy the block
state.getBlock() state.getBlock()
.onBroken(world, blockPosition, state); .onBreak(world, blockPosition, state, turtlePlayer);
if (world.removeBlock(blockPosition, false)) { if (world.removeBlock(blockPosition, false)) {
state.getBlock() state.getBlock()
.onBroken(world, blockPosition, state); .onBroken(world, blockPosition, state);