World shape for dimension
This commit is contained in:
@@ -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"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user