Manual changes following smoke test

This commit is contained in:
Cooldude2606
2026-09-01 01:04:09 +01:00
parent 574a0a4b52
commit 59df8bdff3
18 changed files with 191 additions and 98 deletions
+1 -1
View File
@@ -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