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
+6 -1
View File
@@ -411,7 +411,12 @@ Deno.test({
);
const second = await run();
assert(second.length >= 49);
for (const chunk of second) assert(chunk.blocks[255 * 256] !== 0, `${chunk.x},${chunk.z} is from the save`);
for (const chunk of second) {
assert(
chunk.sections.at(-1)!.get(section_index(0, 15, 0)) !== 0,
`${chunk.x},${chunk.z} is from the save`,
);
}
} finally {
for (const dir of [sources, folder, build]) Deno.removeSync(dir, { recursive: true });
}