Client side chunk sections
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user