From 9b5bdc1b1a387e5f89fca850c6e52940c228ff6e Mon Sep 17 00:00:00 2001 From: JP Guerrero Date: Tue, 17 Apr 2018 13:17:56 +0200 Subject: [PATCH] Workbench: Fix special case of unknown items output (#90) --- src/workbench.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/workbench.lua b/src/workbench.lua index 740ba5c..ad69361 100644 --- a/src/workbench.lua +++ b/src/workbench.lua @@ -70,6 +70,7 @@ function workbench:get_output(inv, input, name) item = nbox[3] and item or "stairs:"..nbox[1].."_"..name:match(":(.*)") output[#output+1] = item.." "..count end + inv:set_list("forms", output) end @@ -201,7 +202,7 @@ function workbench.on_take(pos, listname, index, stack, player) local stackname = stack:get_name() if listname == "input" then - if stackname == inputname then + if stackname == inputname and registered_nodes[inputname.."_cube"] then workbench:get_output(inv, input, stackname) else inv:set_list("forms", {}) -- 2.44.0