From 5918437aefa1c9751e4370981288f89d67c61c32 Mon Sep 17 00:00:00 2001 From: Monica Moniot Date: Sat, 3 Dec 2022 21:34:25 -0500 Subject: [PATCH] fix --- cybersyn/scripts/global.lua | 1 + cybersyn/scripts/migrations.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cybersyn/scripts/global.lua b/cybersyn/scripts/global.lua index d7de169..e193d68 100644 --- a/cybersyn/scripts/global.lua +++ b/cybersyn/scripts/global.lua @@ -124,6 +124,7 @@ function init_global() global.layout_train_count = {} global.layout_top_id = 1 + IS_SE_PRESENT = remote.interfaces["space-exploration"] ~= nil if IS_SE_PRESENT then global.se_tele_old_id = {} end diff --git a/cybersyn/scripts/migrations.lua b/cybersyn/scripts/migrations.lua index b7caa98..df7365b 100644 --- a/cybersyn/scripts/migrations.lua +++ b/cybersyn/scripts/migrations.lua @@ -189,6 +189,8 @@ local migrations_table = { ---@param data ConfigurationChangedData function on_config_changed(data) flib_migration.on_config_changed(data, migrations_table) + + IS_SE_PRESENT = remote.interfaces["space-exploration"] ~= nil if IS_SE_PRESENT and not global.se_tele_old_id then global.se_tele_old_id = {} end