Send chunks to players connected to server
This commit is contained in:
@@ -20,12 +20,9 @@ async function mesh_block(id: string, x: number, middle: Colors, west: Colors |
|
||||
worker.postMessage({
|
||||
type: "init",
|
||||
blocks_registry: JSON.parse(JSON.stringify(blocks)),
|
||||
block_ids,
|
||||
models: {},
|
||||
textures_info: { "engine:missing": { x: 0, y: 0 } },
|
||||
image: { width: 1024, height: 1024 },
|
||||
worldgen_scripts: [],
|
||||
ores: [],
|
||||
});
|
||||
|
||||
const chunk = new Uint32Array(CHUNK_AREA * CHUNK_HEIGHT);
|
||||
|
||||
Reference in New Issue
Block a user