From d79d84be8c0ca5613bec99b1207fbb4c8f9230b8 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 28 Oct 2024 14:26:00 +0100 Subject: [PATCH] Fix sync mode failing due to Lua --- common/common_system.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common_system.ts b/common/common_system.ts index 25d0f7fe..6222f4ea 100644 --- a/common/common_system.ts +++ b/common/common_system.ts @@ -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