This commit is contained in:
2025-08-09 00:52:15 +09:00
parent a8a7abb3e9
commit 8ccbfd8e22
2 changed files with 16 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ Version: 3.0.125
Date: 2025-08-17 Date: 2025-08-17
Changes: Changes:
- [GM] Fixed an issue that it will crash on existing game, as of no init of code. - [GM] Changes on the init and the calculation period.
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 3.0.124 Version: 3.0.124

View File

@@ -200,19 +200,24 @@ script.on_configuration_changed(function()
end end
end end
storage.phi_cl = { if storage.phi_cl then
cargo_landing_pad_storage = {}, if not storage.phi_cl.cargo_landing_pad_storage then
combinator = { storage.phi_cl.cargo_landing_pad_storage = {}
end
if not storage.phi_cl.combinator then
storage.phi_cl.combinator = {
research_set_combinator_count = 0, research_set_combinator_count = 0,
research_queue = {}, research_queue = {},
research_queue_set = {}, research_queue_set = {},
research_progress = 0 research_progress = 0
} }
} end
end
end) end)
if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP' then if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP' then
script.on_nth_tick(3600, function(_) script.on_nth_tick(1800, function(_)
-- --
local ec = game.surfaces[1].find_entities_filtered{type='cargo-landing-pad'} local ec = game.surfaces[1].find_entities_filtered{type='cargo-landing-pad'}
local ec_count = #ec local ec_count = #ec