]> git.lizzy.rs Git - xdecor.git/commitdiff
Work Table nodes registration : check for cracky and choppy groups instead of excludi...
authorkilbith <jeanpatrick.guerrero@gmail.com>
Sun, 31 Jan 2016 15:16:09 +0000 (16:16 +0100)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Sun, 31 Jan 2016 15:16:09 +0000 (16:16 +0100)
worktable.lua

index 9b5f6a8f1944147503b5ad9366a494a9257b667d..73f14fc72b658d4351a4f6839d2b287850878516 100644 (file)
@@ -4,11 +4,12 @@ screwdriver = screwdriver or {}
 -- Nodes allowed to be cut.
 -- Only the regular, solid blocks without formspec or explosivity can be cut.
 function worktable.nodes(def)
-       return (def.drawtype == "normal" or def.drawtype:find("glass")) and not
+       return (def.drawtype == "normal" or def.drawtype:find("glass")) and
+               (def.groups.cracky or def.groups.choppy) and not
                def.on_construct and not def.after_place_node and not
                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.crumbly and not (def.groups.not_in_creative_inventory == 1) and not
+               (def.groups.not_in_creative_inventory == 1) and not
                def.description:find("Ore") and not def.name:find("wool") and
                def.description and def.description ~= "" and def.light_source == 0
 end