sanity checking, stop crash in case of garbage inventory data

(i.e. that looks like nil)
This commit is contained in:
Vanessa Ezekowitz 2015-01-10 01:31:22 -05:00
parent 6f16dd24c2
commit e0039f22f8

@ -9,7 +9,9 @@ local function make_inventory_cache(invlist)
end
local function autocraft(inventory, pos)
if not inventory then return end
local recipe = inventory:get_list("recipe")
if not recipe then return end
local recipe_last
local result
local new