Skip to content

Commit

Permalink
Fix air bridging
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Apr 1, 2021
1 parent 72695f8 commit 4a94645
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a94645

Please sign in to comment.