This commit is contained in:
Monica Moniot
2022-12-03 21:34:25 -05:00
parent 899669baa1
commit 5918437aef
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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