World sections
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user