mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-19 15:23:12 +09:00
Refactor Selection Util (#409)
* Add Selection to ExpUtil * Convert modules to use new lib * Bug Fixes
This commit is contained in:
1 parent
85c7cce740
commit
27a2feaae9
9 files changed
+316
-263
No files matched your search
@@ -301,8 +301,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