Send chunks to players connected to server
This commit is contained in:
+2
-1
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user