diff --git a/mods/pipeworks/autocrafter.lua b/mods/pipeworks/autocrafter.lua index a6d8ad12..b9edd935 100755 --- a/mods/pipeworks/autocrafter.lua +++ b/mods/pipeworks/autocrafter.lua @@ -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