stop breaking block on cancel, even if not requested by player
This commit is contained in:
parent
41ffd4455d
commit
023822b5d9
@ -25,10 +25,7 @@ import baritone.pathing.movement.Movement;
|
|||||||
import baritone.pathing.movement.MovementHelper;
|
import baritone.pathing.movement.MovementHelper;
|
||||||
import baritone.pathing.movement.MovementState;
|
import baritone.pathing.movement.MovementState;
|
||||||
import baritone.pathing.movement.movements.*;
|
import baritone.pathing.movement.movements.*;
|
||||||
import baritone.utils.BlockStateInterface;
|
import baritone.utils.*;
|
||||||
import baritone.utils.Helper;
|
|
||||||
import baritone.utils.InputOverrideHandler;
|
|
||||||
import baritone.utils.Utils;
|
|
||||||
import baritone.utils.pathing.BetterBlockPos;
|
import baritone.utils.pathing.BetterBlockPos;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.util.Tuple;
|
import net.minecraft.util.Tuple;
|
||||||
@ -386,6 +383,7 @@ public class PathExecutor implements Helper {
|
|||||||
|
|
||||||
private void cancel() {
|
private void cancel() {
|
||||||
clearKeys();
|
clearKeys();
|
||||||
|
BlockBreakHelper.stopBreakingBlock();
|
||||||
pathPosition = path.length() + 3;
|
pathPosition = path.length() + 3;
|
||||||
failed = true;
|
failed = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user