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