From ea0df9a50efd09ff4d25c95bf97334665d7ca1bd Mon Sep 17 00:00:00 2001 From: kilbith Date: Fri, 12 Jun 2015 15:45:53 +0200 Subject: [PATCH] tweak workbench --- workbench.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workbench.lua b/workbench.lua index c77ff79..a632dd9 100644 --- a/workbench.lua +++ b/workbench.lua @@ -9,7 +9,7 @@ xdecor.register("workbench", { on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", "size[8,7;]"..fancy_gui.. - "label[0,0;Cut your wood into...]".. + "label[0,0;Cut your wood tile into...]".. "label[0,1.5;Input]".. "list[current_name;input;0,2;1,1;]".. "image[1,2;1,1;xdecor_saw.png]".. @@ -53,7 +53,7 @@ xdecor.register("workbench", { else return end local inputstack = inv:get_stack("input", 1) - if minetest.get_item_group(inputstack:get_name(), "wood") ~= 0 then + if (inputstack:get_name() == "xdecor:wood_tile") then local give = {} for i = 0, anz-1 do give[i+1] = inv:add_item("output", shape)