]> git.lizzy.rs Git - xdecor.git/commitdiff
Workbench: allow to exclude cuttable nodes with group
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>
Sat, 3 Dec 2016 10:48:38 +0000 (11:48 +0100)
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>
Sat, 3 Dec 2016 10:48:38 +0000 (11:48 +0100)
src/workbench.lua

index c64f4eec4eda86c38fd08a8f42d32e6644e3456f..6b762a46a87ad045371dac07b3219e3fd5f38a15 100644 (file)
@@ -14,6 +14,7 @@ for node, def in pairs(minetest.registered_nodes) do
           not def.on_blast and
           not def.allow_metadata_inventory_take and
           not (def.groups.not_in_creative_inventory == 1) and
+          not (def.groups.not_cuttable == 1) and
           not def.groups.wool and
           (def.tiles and not def.tiles[1]:find("default_mineral")) and
           not def.mesecons and