From 042ca9fb98070e97bd8e78ddc9e2846a9dfcf085 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sat, 8 Jan 2022 23:10:04 +0100 Subject: [PATCH] fix mod version and factorio version global def --- .../src/main/typescript/main/config-update/updateGlobal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/events-mod/src/main/typescript/main/config-update/updateGlobal.ts b/modules/events-mod/src/main/typescript/main/config-update/updateGlobal.ts index db1e621..c81be94 100644 --- a/modules/events-mod/src/main/typescript/main/config-update/updateGlobal.ts +++ b/modules/events-mod/src/main/typescript/main/config-update/updateGlobal.ts @@ -1,4 +1,4 @@ export function updateGlobal() { - global.MOD_VERSION = script.active_mods[script.mod_name][1] - global.FACTORIO_VERSION = script.active_mods["base"][1] + global.MOD_VERSION = script.active_mods[script.mod_name] + global.FACTORIO_VERSION = script.active_mods["base"] }