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
+2 -1
View File
@@ -173,10 +173,11 @@ export function read_bmod(bytes: Uint8Array, file: string): Bmod {
return { manifest, data, scripts, textures, credits };
}
// the same mod with its server script taken out, what players get
// the same mod without its server and worldgen scripts, what players get. the server sends them the world
export function client_copy(bmod: Bmod): Bmod {
const scripts = { ...bmod.scripts };
delete scripts.server;
delete scripts.worldgen;
return { ...bmod, scripts };
}