The bedrock check asks the height first, so a placement above the bottom rows never reads the dimension's bedrock setting

This commit is contained in:
piexel committed 2026-10-15 07:28:26 +02:00
1 parent 3eb987680e
commit 0cd2a0e195
1 file changed
+1 -1
@@ -96,7 +96,7 @@ public final class ValidateModule implements IrisModule {
private static boolean isOnBedrock(PreparedPlacement prepared, int y) {
PlacementTerrain terrain = prepared.terrain();
return terrain.hasWorld() && terrain.hasBedrock() && y <= BEDROCK_ROW;
return y <= BEDROCK_ROW && terrain.hasWorld() && terrain.hasBedrock();
}
private static boolean lacksSurfaceSupport(ObjectPlacement placement, PreparedPlacement prepared) {