Merge pull request #11 from mamoniot/experimental

fixed a crash
This commit is contained in:
Monica Moniot
2022-12-08 21:39:52 -05:00
committed by GitHub
4 changed files with 16 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.2
Date: 2022-12-8
Changes:
- Fixed a crash on newly generated worlds
---------------------------------------------------------------------------------------------------
Version: 1.1.1
Date: 2022-12-8
Changes:

View File

@@ -1,6 +1,6 @@
{
"name": "cybersyn",
"version": "1.1.1",
"version": "1.1.2",
"title": "Project Cybersyn",
"author": "Mami",
"factorio_version": "1.1",

View File

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

View File

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