From fb971301a423187259086b5bb26ad55422be5e49 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 20 Nov 2018 16:32:55 -0800 Subject: [PATCH] fix getting permanently stuck on sideways fence gates in our way --- src/main/java/baritone/pathing/movement/MovementHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/movement/MovementHelper.java b/src/main/java/baritone/pathing/movement/MovementHelper.java index 15d79040..72177669 100644 --- a/src/main/java/baritone/pathing/movement/MovementHelper.java +++ b/src/main/java/baritone/pathing/movement/MovementHelper.java @@ -200,7 +200,7 @@ public interface MovementHelper extends ActionCosts, Helper { return true; } - return isHorizontalBlockPassable(gatePos, state, playerPos, BlockFenceGate.OPEN); + return state.getValue(BlockFenceGate.OPEN); } static boolean isHorizontalBlockPassable(BlockPos blockPos, IBlockState blockState, BlockPos playerPos, PropertyBool propertyOpen) {