mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-10 08:08:14 -06:00
fixed a crash
This commit is contained in:
@@ -142,6 +142,8 @@ function init_global()
|
||||
global.layouts = {}
|
||||
global.layout_train_count = {}
|
||||
global.layout_top_id = 1
|
||||
global.refuelers = {}
|
||||
global.to_refuelers = {}
|
||||
|
||||
IS_SE_PRESENT = remote.interfaces["space-exploration"] ~= nil
|
||||
if IS_SE_PRESENT then
|
||||
|
||||
@@ -95,6 +95,14 @@ local migrations_table = {
|
||||
end
|
||||
end
|
||||
end,
|
||||
["1.1.2"] = function()
|
||||
---@type MapData
|
||||
local map_data = global
|
||||
map_data.tick_state = STATE_INIT
|
||||
map_data.tick_data = {}
|
||||
map_data.refuelers = map_data.refuelers or {}
|
||||
map_data.to_refuelers = map_data.to_refuelers or {}
|
||||
end,
|
||||
}
|
||||
--STATUS_R_TO_D = 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user