mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-22 01:04:01 +00:00
Manual changes following smoke test
This commit is contained in:
@@ -459,7 +459,7 @@ local function on_entity_settings_pasted(event)
|
||||
-- Get the modules and add them to the planner
|
||||
local all_modules = {}
|
||||
for i = 1, #module_inventory do
|
||||
local slot = module_inventory[i]
|
||||
local slot = module_inventory[i --[[@as uint]]]
|
||||
if slot.valid_for_read and slot.count > 0 then
|
||||
all_modules[i] = { name = slot.name, quality = slot.quality.name }
|
||||
else
|
||||
|
||||
@@ -294,9 +294,9 @@ end
|
||||
--- Get the achieved time for a force
|
||||
--- @param force LuaForce
|
||||
--- @param research_index number
|
||||
--- @return number
|
||||
--- @return number?
|
||||
function Elements.container.get_achieved_time(force, research_index)
|
||||
return assert(Elements.container.data[force][research_index])
|
||||
return assert(Elements.container.data[force])[research_index]
|
||||
end
|
||||
|
||||
--- Calculate the starting research index for a force
|
||||
|
||||
Reference in New Issue
Block a user