Send chunks to players connected to server

This commit is contained in:
2026-09-28 11:14:40 -03:00
parent 677ad8115a
commit ded9a7e5d0
26 changed files with 920 additions and 357 deletions
-3
View File
@@ -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);