From: kilbith Date: Thu, 4 Feb 2016 17:53:03 +0000 (+0100) Subject: Fix stone not being cuttable since recent commit X-Git-Tag: 1.0~147 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=73a135151c3ee333842bb53b9ec86cbffe1ad8af;p=xdecor.git Fix stone not being cuttable since recent commit --- diff --git a/handlers/helpers.lua b/handlers/helpers.lua index 716c2bf..13d3ed7 100644 --- a/handlers/helpers.lua +++ b/handlers/helpers.lua @@ -23,7 +23,7 @@ function xdecor.tablecopy(T) if type(v) == "table" then new[k] = xdecor.tablecopy(v) else - new[k] = item + new[k] = v end end return new diff --git a/worktable.lua b/worktable.lua index cd486ee..e3a949a 100644 --- a/worktable.lua +++ b/worktable.lua @@ -10,8 +10,8 @@ function worktable:nodes(def) def.after_place_node and not def.on_rightclick and not def.on_blast and not def.allow_metadata_inventory_take and not (def.groups.not_in_creative_inventory == 1) and not - def.groups.wool and not def.drop and def.light_source == 0 and - def.description and def.description ~= "" + def.groups.wool and not def.description:find("Ore") and + def.description and def.description ~= "" and def.light_source == 0 end -- Nodeboxes definitions.