Client side chunk sections

This commit is contained in:
2026-11-07 10:39:16 -03:00
parent 8e14e9842a
commit 71cbf901a5
19 changed files with 162 additions and 116 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ Deno.test("a report reads back from what was copied", () => {
Deno.test("the benchmark's level comes out the same every time, with terrain in every layer", async () => {
await test_game("mods");
const blocks = bench_blocks(new Set());
const chunk = (x: number, z: number) => new BenchTerrain(blocks).chunk(x, z).blocks;
const chunk = (x: number, z: number) => new BenchTerrain(blocks).chunk(x, z).to_flat();
const lake = [Math.floor(ZONES.lake.x / CHUNK_SIZE), Math.floor(ZONES.lake.z / CHUNK_SIZE)] as const;
const near_lake = [lake[0] + 3, lake[1] + 3] as const;
assertEquals(chunk(0, 0), chunk(0, 0));