World shape for dimension

This commit is contained in:
2026-11-06 22:49:43 -03:00
parent 7458a2d42a
commit 818ce22dd6
60 changed files with 749 additions and 349 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ Deno.test("a mod's biome generates where its rule, added to the base game's, say
if (biome !== "lavender:fields") return;
fields++;
// its surface: the top block of the column is its sand
let y = 255;
let y = game.world.shape.height - 1;
while (y > 0 && blocks[y * CHUNK_AREA + column] === 0) y--;
assertEquals(blocks[y * CHUNK_AREA + column], block_ids["bworld:sand"]);
});