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
+1 -1
View File
@@ -32,7 +32,7 @@ Deno.test({
if (!is_within_view(cx, cz, player.chunks.view_distance, x, z)) continue;
const chunk = chunks.get(`${x},${z}`);
assert(chunk, `chunk ${x},${z} wasn't sent`);
assertEquals(chunk.blocks, t.game.world.generated_blocks(x, z), `chunk ${x},${z}`);
assertEquals(chunk.blocks, t.game.world.generated_blocks(x, z).to_flat(), `chunk ${x},${z}`);
}
}
assert(t.pool!.generated - generated > chunks.size, "the pool made them, and their neighbors");