added /protector_show /protector_hide feature

This commit is contained in:
TenPlus1 2020-06-12 11:41:33 +01:00
commit c147242c7d
5 changed files with 106 additions and 7 deletions

View file

@ -244,7 +244,7 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel)
local pos = minetest.find_nodes_in_area(
{x = pos.x - r, y = pos.y - r, z = pos.z - r},
{x = pos.x + r, y = pos.y + r, z = pos.z + r},
{"protector:protect", "protector:protect2"})
{"protector:protect", "protector:protect2", "protector:protect_hidden"})
local meta, owner, members