mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-08 08:08:11 -06:00
added check for poisoned migrations
This commit is contained in:
@@ -297,7 +297,7 @@ local migrations_table = {
|
||||
end
|
||||
end,
|
||||
["1.2.14"] = function()
|
||||
---@type MapData
|
||||
---@type MapData
|
||||
local map_data = global
|
||||
|
||||
map_data.manager = {
|
||||
@@ -328,12 +328,21 @@ function on_config_changed(data)
|
||||
global.tick_data = {}
|
||||
global.perf_cache = {}
|
||||
|
||||
flib_migration.on_config_changed(data, migrations_table)
|
||||
|
||||
for i, v in pairs(global.manager.players) do
|
||||
manager_gui.reset_player(i, v)
|
||||
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
|
||||
global.se_tele_old_id = {}
|
||||
|
||||
Reference in New Issue
Block a user