diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-27 19:54:19 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-27 19:54:19 -0700 |
commit | 12f4a03ef242cc51457be8fabb4bdb10915cccf2 (patch) | |
tree | da7b3abee6a2b2b8cbda49cb04c7ddab37d115df /util.lua | |
parent | be3bab36e464b351167677cd89566bc9370cc909 (diff) |
add a "digtron_protected" node group for modders to use if they want to prevent digtrons from digging their nodes
Diffstat (limited to 'util.lua')
-rw-r--r-- | util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ digtron.mark_diggable = function(pos, nodes_dug) local target = minetest.get_node(pos) -- prevent digtrons from being marked for digging. - if minetest.get_item_group(target.name, "digtron") ~= 0 then + if minetest.get_item_group(target.name, "digtron") ~= 0 or minetest.get_item_group(target.name, "digtron_protected") ~= 0 then return 0, {} end |