added check for poisoned migrations

This commit is contained in:
mamoniot
2023-04-30 21:00:50 -04:00
parent 4470c15fd8
commit e20ef82eb5

View File

@@ -328,11 +328,20 @@ function on_config_changed(data)
global.tick_data = {}
global.perf_cache = {}
flib_migration.on_config_changed(data, migrations_table)
if global.manager then
for i, v in pairs(global.manager.players) do
manager_gui.reset_player(i, v)
end
else
global.manager = {
players = {},
}
for i, v in pairs(game.players) do
manager_gui.on_player_created({player_index = i})
end
end
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