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