mirror of
https://github.com/joe7575/techpack.git
synced 2025-02-16 18:02:25 +01:00
fix crash of unknown origin
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user