mirror of
https://github.com/joe7575/techpack.git
synced 2024-12-25 07:02:31 +01:00
fix crash of unknown origin
This commit is contained in:
parent
01a836130b
commit
e2b9d73f8e
@ -72,7 +72,7 @@ local State = tubelib.NodeStates:new({
|
||||
-- Return a key/value table with all items and the corresponding stack numbers
|
||||
local function invlist_content_as_kvlist(list)
|
||||
local res = {}
|
||||
for idx,items in ipairs(list) do
|
||||
for idx,items in ipairs(list or {}) do
|
||||
local name = items:get_name()
|
||||
if name ~= "" then
|
||||
res[name] = idx
|
||||
|
Loading…
Reference in New Issue
Block a user