]> git.lizzy.rs Git - xdecor.git/commitdiff
Fix stone not being cuttable since recent commit
authorkilbith <jeanpatrick.guerrero@gmail.com>
Thu, 4 Feb 2016 17:53:03 +0000 (18:53 +0100)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Thu, 4 Feb 2016 19:56:52 +0000 (20:56 +0100)
handlers/helpers.lua
worktable.lua

index 716c2bf1a66e12fb6628adeca92ba1fb6cad6050..13d3ed70a8866a04a9b5db35081983ccf87f9b26 100644 (file)
@@ -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
index cd486ee3ccfcb5de9ad0255579648077e00f4285..e3a949a150381e5bce58097c065267019e737877 100644 (file)
@@ -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.