From 3afd8368220c24b80256f357bc9c8db0cadd2b44 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 2 Sep 2018 09:22:51 -0700 Subject: [PATCH] only offset down if doing so would put us on solid ground --- src/main/java/baritone/behavior/impl/PathingBehavior.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/behavior/impl/PathingBehavior.java b/src/main/java/baritone/behavior/impl/PathingBehavior.java index e7c20c61..075d8d6f 100644 --- a/src/main/java/baritone/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/behavior/impl/PathingBehavior.java @@ -27,6 +27,7 @@ import baritone.pathing.calc.AStarPathFinder; import baritone.pathing.calc.AbstractNodeCostSearch; import baritone.pathing.calc.IPathFinder; import baritone.pathing.goals.*; +import baritone.pathing.movement.MovementHelper; import baritone.pathing.path.IPath; import baritone.pathing.path.PathExecutor; import baritone.utils.BlockStateInterface; @@ -226,7 +227,7 @@ public class PathingBehavior extends Behavior { public BlockPos pathStart() { BlockPos feet = playerFeet(); - if (BlockStateInterface.get(feet.down()).getBlock().equals(Blocks.AIR)) { + if (BlockStateInterface.get(feet.down()).getBlock().equals(Blocks.AIR) && MovementHelper.canWalkOn(feet.down().down())) { return feet.down(); } return feet;