mirror of https://github.com/cabaletta/baritone
only offset down if doing so would put us on solid ground
This commit is contained in:
parent
1f97daf391
commit
3afd836822
|
@ -27,6 +27,7 @@ import baritone.pathing.calc.AStarPathFinder;
|
||||||
import baritone.pathing.calc.AbstractNodeCostSearch;
|
import baritone.pathing.calc.AbstractNodeCostSearch;
|
||||||
import baritone.pathing.calc.IPathFinder;
|
import baritone.pathing.calc.IPathFinder;
|
||||||
import baritone.pathing.goals.*;
|
import baritone.pathing.goals.*;
|
||||||
|
import baritone.pathing.movement.MovementHelper;
|
||||||
import baritone.pathing.path.IPath;
|
import baritone.pathing.path.IPath;
|
||||||
import baritone.pathing.path.PathExecutor;
|
import baritone.pathing.path.PathExecutor;
|
||||||
import baritone.utils.BlockStateInterface;
|
import baritone.utils.BlockStateInterface;
|
||||||
|
@ -226,7 +227,7 @@ public class PathingBehavior extends Behavior {
|
||||||
|
|
||||||
public BlockPos pathStart() {
|
public BlockPos pathStart() {
|
||||||
BlockPos feet = playerFeet();
|
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.down();
|
||||||
}
|
}
|
||||||
return feet;
|
return feet;
|
||||||
|
|
Loading…
Reference in New Issue