World sections
This commit is contained in:
@@ -231,7 +231,7 @@ const shade = (color: [number, number, number], factor: number): [number, number
|
||||
for (let cx = 0; cx < chunks; cx++) {
|
||||
const chunk_x = origin / CHUNK_SIZE + cx + center_x;
|
||||
const chunk_z = origin / CHUNK_SIZE + cz + center_z;
|
||||
const { blocks } = generate_raw_chunk(chunk_x, chunk_z, seed, block_ids, worldgen);
|
||||
const blocks = generate_raw_chunk(chunk_x, chunk_z, seed, block_ids, worldgen).column.to_flat();
|
||||
for (let lz = 0; lz < CHUNK_SIZE; lz++) {
|
||||
for (let lx = 0; lx < CHUNK_SIZE; lx++) {
|
||||
const px = cx * CHUNK_SIZE + lx;
|
||||
|
||||
Reference in New Issue
Block a user