stop breaking block on cancel, even if not requested by player

This commit is contained in:
Leijurv 2018-10-01 15:11:52 -07:00
parent 41ffd4455d
commit 023822b5d9
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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;
}