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