From 4a94645c417a94d901f54cc0bad6646dc5a94598 Mon Sep 17 00:00:00 2001 From: Pyrofab Date: Thu, 1 Apr 2021 22:50:40 +0200 Subject: [PATCH] Fix air bridging --- .../baritone/pathing/movement/movements/MovementTraverse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java b/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java index d92fd65d..a342effa 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java @@ -235,7 +235,8 @@ public static double cost(CalculationContext context, int x, int y, int z, int d // now that we've checked all possible directions to side place, we actually need to backplace // none of the vanilla impls do a blocking or thread unsafe call, so passing the world directly should be fine // also none of the full cubes actually use the pos, so we should be fine not creating a real BlockPos for this - if (!srcOn.isFullCube(context.world, BlockPos.ORIGIN)) { + if (!srcOn.getMaterial().isReplaceable() && !srcOn.isFullCube(context.world, BlockPos.ORIGIN)) { + // If srcOn is currently replaceable, we will have a proper block when we stand on it return COST_INF; // can't sneak and backplace against eg. soul sand or half slabs (regardless of whether it's top half or bottom half) =/ } if (srcOn.getFluidState().getFluid() instanceof WaterFluid) {