Fix sync mode failing due to Lua
parent
64bbe67912
commit
d79d84be8c
|
@ -62,10 +62,10 @@ export abstract class CommonSystem {
|
||||||
Object.keys(this.scriptEnv.eventHandlers).length,
|
Object.keys(this.scriptEnv.eventHandlers).length,
|
||||||
"event handlers from space-script",
|
"event handlers from space-script",
|
||||||
);
|
);
|
||||||
|
await this.spaceLuaEnv.reload(this.system, this.scriptEnv);
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error("Error loading space-script:", e.message);
|
console.error("Error loading space-script:", e.message);
|
||||||
}
|
}
|
||||||
await this.spaceLuaEnv.reload(this.system, this.scriptEnv);
|
|
||||||
functions = { ...functions, ...this.scriptEnv.functions };
|
functions = { ...functions, ...this.scriptEnv.functions };
|
||||||
|
|
||||||
// Reset the space script commands
|
// Reset the space script commands
|
||||||
|
|
Loading…
Reference in New Issue