From 023822b5d96a571014e7d721343409e14d03de9d Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 1 Oct 2018 15:11:52 -0700 Subject: [PATCH] stop breaking block on cancel, even if not requested by player --- src/main/java/baritone/pathing/path/PathExecutor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/pathing/path/PathExecutor.java b/src/main/java/baritone/pathing/path/PathExecutor.java index 8dcdb159..d73cd9ad 100644 --- a/src/main/java/baritone/pathing/path/PathExecutor.java +++ b/src/main/java/baritone/pathing/path/PathExecutor.java @@ -25,10 +25,7 @@ import baritone.pathing.movement.Movement; import baritone.pathing.movement.MovementHelper; import baritone.pathing.movement.MovementState; import baritone.pathing.movement.movements.*; -import baritone.utils.BlockStateInterface; -import baritone.utils.Helper; -import baritone.utils.InputOverrideHandler; -import baritone.utils.Utils; +import baritone.utils.*; import baritone.utils.pathing.BetterBlockPos; import net.minecraft.init.Blocks; import net.minecraft.util.Tuple; @@ -386,6 +383,7 @@ public class PathExecutor implements Helper { private void cancel() { clearKeys(); + BlockBreakHelper.stopBreakingBlock(); pathPosition = path.length() + 3; failed = true; }