Skip to content

Commit

Permalink
Fix sync mode failing due to Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
zefhemel committed Oct 28, 2024
1 parent 64bbe67 commit d79d84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common_system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d79d84b

Please sign in to comment.