Read an explicit world Y below zero as a height, not as automatic

An object or structure piece placed at world Y -1, or at any Y that lands below zero, was treated as "sample the height" because every stage tested requestedY < 0. Automatic height is now an explicit flag on the placement run, set by the automatic entry points, and explicit heights of any sign are placed where asked. Automatic placements keep their seeds and heights.

Upstream: 9f0615a97
This commit is contained in:
piexel committed 2026-11-10 01:22:46 +01:00
1 parent ccdfad8ba5
commit e3dd61c177
15 files changed
+157 -57

No files matched your search

@@ -79,11 +79,16 @@ public final class RunningPlacement {
return run.x();
}
/** The height the caller asked for, negative when the placement samples it. */
/** The height the caller asked for; meaningless when {@link #automaticHeight()}. */
public int requestedY() {
return run.requestedY();
}
/** Whether the placement samples its height from the terrain instead of placing at {@link #requestedY()}. */
public boolean automaticHeight() {
return run.automaticHeight();
}
public int z() {
return run.z();
}