Merge remote-tracking branch 'origin/main' into pr/1131

pull/1131/head
Zef Hemel 2024-10-28 14:26:14 +01:00
commit dc83f2b8a8
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,
"event handlers from space-script",
);
await this.spaceLuaEnv.reload(this.system, this.scriptEnv);
} catch (e: any) {
console.error("Error loading space-script:", e.message);
}
await this.spaceLuaEnv.reload(this.system, this.scriptEnv);
functions = { ...functions, ...this.scriptEnv.functions };
// Reset the space script commands