Shared state between client and server
This commit is contained in:
@@ -85,6 +85,7 @@ async function init(message: Extract<HostToGame, { type: "init" }>) {
|
||||
// the worker has no file access, so the host sends the code and it's imported from memory
|
||||
server_url: mod.server_code ? data_url(mod.server_code) : undefined,
|
||||
worldgen_url: mod.worldgen_code ? data_url(mod.worldgen_code) : undefined,
|
||||
shared_url: mod.shared_code ? data_url(mod.shared_code) : undefined,
|
||||
})),
|
||||
);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user