better check than air
This commit is contained in:
parent
93158226b6
commit
43b155d7b8
@ -35,10 +35,8 @@ import baritone.pathing.calc.CutoffPath;
|
|||||||
import baritone.pathing.movement.MovementHelper;
|
import baritone.pathing.movement.MovementHelper;
|
||||||
import baritone.pathing.path.PathExecutor;
|
import baritone.pathing.path.PathExecutor;
|
||||||
import baritone.utils.BlockBreakHelper;
|
import baritone.utils.BlockBreakHelper;
|
||||||
import baritone.utils.BlockStateInterface;
|
|
||||||
import baritone.utils.Helper;
|
import baritone.utils.Helper;
|
||||||
import baritone.utils.PathRenderer;
|
import baritone.utils.PathRenderer;
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.chunk.EmptyChunk;
|
import net.minecraft.world.chunk.EmptyChunk;
|
||||||
|
|
||||||
@ -259,7 +257,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
|
|||||||
*/
|
*/
|
||||||
private BlockPos pathStart() {
|
private BlockPos pathStart() {
|
||||||
BetterBlockPos feet = playerFeet();
|
BetterBlockPos feet = playerFeet();
|
||||||
if (BlockStateInterface.get(feet.down()).getBlock().equals(Blocks.AIR) && MovementHelper.canWalkOn(feet.down().down())) {
|
if (!MovementHelper.canWalkOn(feet.down()) && MovementHelper.canWalkOn(feet.down().down())) {
|
||||||
return feet.down();
|
return feet.down();
|
||||||
}
|
}
|
||||||
return feet;
|
return feet;
|
||||||
|
Loading…
Reference in New Issue
Block a user