From 7b29a553df2a6c5efa9e7c99e954cd311a329e5a Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 2 Mar 2021 19:06:25 +0100 Subject: [PATCH] Grinder: fix inventory bug (forum bug report) --- tubelib_addons1/grinder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubelib_addons1/grinder.lua b/tubelib_addons1/grinder.lua index b396481..466a4a1 100644 --- a/tubelib_addons1/grinder.lua +++ b/tubelib_addons1/grinder.lua @@ -83,7 +83,7 @@ local function allow_metadata_inventory_take(pos, listname, index, stack, player end local function grinding(pos, meta, inv) - for _,stack in ipairs(inv:get_list("src")) do + for _,stack in ipairs(inv:get_list("src") or {}) do if not stack:is_empty() then local name = stack:get_name() if Recipes[name] then