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