forked from mtcontrib/pipeworks
sanity checking, stop crash in case of garbage inventory data
(i.e. that looks like nil)
This commit is contained in:
parent
6f16dd24c2
commit
e0039f22f8
|
@ -9,7 +9,9 @@ local function make_inventory_cache(invlist)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function autocraft(inventory, pos)
|
local function autocraft(inventory, pos)
|
||||||
|
if not inventory then return end
|
||||||
local recipe = inventory:get_list("recipe")
|
local recipe = inventory:get_list("recipe")
|
||||||
|
if not recipe then return end
|
||||||
local recipe_last
|
local recipe_last
|
||||||
local result
|
local result
|
||||||
local new
|
local new
|
||||||
|
|
Loading…
Reference in New Issue
Block a user