3D biomes

This commit is contained in:
2026-11-07 12:13:43 -03:00
parent b726ce9695
commit 22191d260c
53 changed files with 874 additions and 316 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ Deno.test("cacti grow 1 to 3 tall on desert sand, 2 or 3 tries a chunk", async (
// the bottom of each cactus
if (at(x, y, z) !== cactus || at(x, y - 1, z) === cactus) continue;
assertEquals(at(x, y - 1, z), sand, "on sand");
assertEquals(chunk.column.biomes[z * CHUNK_SIZE + x], "bworld:desert");
assertEquals(chunk.column.biome_at(x0 + x, y - 1, z0 + z), "bworld:desert");
let height = 0;
while (at(x, y + height, z) === cactus) height++;
heights.push(height);