mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Merge branch 'aperx' of https://github.com/PHIDIAS0303/ExpCluster into aperx
This commit is contained in:
@@ -304,8 +304,9 @@ end
|
||||
--- @param force LuaForce
|
||||
--- @return number
|
||||
function Elements.container.calculate_starting_research_index(force)
|
||||
local force_data = Elements.container.data[force]
|
||||
local force_data = Elements.container.data[force] or {}
|
||||
local research_index = research_targets.length
|
||||
Elements.container.data[force] = force_data -- needed because of @clusterio/research_sync
|
||||
|
||||
-- # does not work here because it returned the array alloc size
|
||||
for i = 1, research_targets.length do
|
||||
|
||||
Reference in New Issue
Block a user