1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-28 00:12:16 +00:00

Fix turtle digging.

This commit is contained in:
Jacob Farley 2020-09-04 21:49:07 -05:00
parent d28afcc6a9
commit cc72e1c2bd

View File

@ -181,12 +181,6 @@ public class TurtleTool extends AbstractTurtleUpgrade {
turtlePlayer.loadInventory(this.item.copy());
if (ComputerCraft.turtlesObeyBlockProtection) {
// Check spawn protection
if (PlayerBlockBreakEvents.BEFORE.invoker()
.beforeBlockBreak(world, turtlePlayer, blockPosition, state, null)) {
return TurtleCommandResult.failure("Cannot break protected block");
}
if (!TurtlePermissions.isBlockEditable(world, blockPosition, turtlePlayer)) {
return TurtleCommandResult.failure("Cannot break protected block");
}