added /protector_show /protector_hide feature
This commit is contained in:
parent
db932e676c
commit
c147242c7d
5 changed files with 106 additions and 7 deletions
2
init.lua
2
init.lua
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue