mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 23:33:44 +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
|
-- Return a key/value table with all items and the corresponding stack numbers
|
||||||
local function invlist_content_as_kvlist(list)
|
local function invlist_content_as_kvlist(list)
|
||||||
local res = {}
|
local res = {}
|
||||||
for idx,items in ipairs(list) do
|
for idx,items in ipairs(list or {}) do
|
||||||
local name = items:get_name()
|
local name = items:get_name()
|
||||||
if name ~= "" then
|
if name ~= "" then
|
||||||
res[name] = idx
|
res[name] = idx
|
||||||
|
Loading…
Reference in New Issue
Block a user