Fix sync mode failing due to Lua

pull/1131/head
Zef Hemel 2024-10-28 14:26:00 +01:00
parent 64bbe67912
commit d79d84be8c
1 changed files with 1 additions and 1 deletions

View File

@ -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