From a35a6409ab84021ff7ca1d99c3ca5c2f75710056 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Sun, 5 Aug 2018 21:57:53 -0400 Subject: [PATCH] Invert check on Movement passability checkC --- src/main/java/baritone/bot/pathing/movement/Movement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/movement/Movement.java b/src/main/java/baritone/bot/pathing/movement/Movement.java index 9bc5aff5..1cdcd03b 100644 --- a/src/main/java/baritone/bot/pathing/movement/Movement.java +++ b/src/main/java/baritone/bot/pathing/movement/Movement.java @@ -132,7 +132,7 @@ public abstract class Movement implements Helper, MovementHelper { return true; } for(BlockPos blockPos : positionsToBreak) { - if(MovementHelper.canWalkThrough(blockPos, BlockStateInterface.get(blockPos))) { + if(!MovementHelper.canWalkThrough(blockPos, BlockStateInterface.get(blockPos))) { Optional reachable = LookBehaviorUtils.reachable(blockPos); reachable.ifPresent(rotation -> { state.setTarget(new MovementState.MovementTarget(Optional.empty(), reachable))