From 468a0068d55f202b0708cb44a953316b742e8ce6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 8 Feb 2016 20:57:11 +0100 Subject: [PATCH] Work Table : check cuttable node in registered nodes instead of function --- worktable.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worktable.lua b/worktable.lua index b8b90ad..5400809 100644 --- a/worktable.lua +++ b/worktable.lua @@ -263,11 +263,11 @@ function worktable.dig(pos) inv:is_empty("tool") and inv:is_empty("storage") end -function worktable.put(pos, listname, _, stack) +function worktable.put(_, listname, _, stack) local stackname = stack:get_name() if (listname == "tool" and stack:get_wear() > 0 and worktable.repairable_tools:find(stackname:match(":(%w+)"))) or - (listname == "input" and worktable:nodes(minetest.registered_nodes[stackname])) or + (listname == "input" and minetest.registered_nodes[stackname.."_cube"]) or (listname == "hammer" and stackname == "xdecor:hammer") or listname == "storage" or listname == "trash" then return stack:get_count()