World sections

This commit is contained in:
2026-11-06 23:13:34 -03:00
parent 818ce22dd6
commit 1fa47c027d
21 changed files with 392 additions and 127 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ Deno.test("trees grow the wood of their kind and biome", async () => {
const found_leaves = new Set<string>();
for (let cx = -8; cx < 8; cx++) {
for (let cz = -8; cz < 8; cz++) {
const { blocks, biomes } = generate_raw_chunk(cx, cz, "wood-test", ids, game.world.worldgen);
const { column } = generate_raw_chunk(cx, cz, "wood-test", ids, game.world.worldgen);
const [blocks, biomes] = [column.to_flat(), column.biomes];
blocks.forEach((block, i) => {
const leaves = leaves_of.get(block);
if (leaves) found_leaves.add(leaves);