summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-04-26 15:23:44 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-04-26 15:23:44 +0100
commitf02fe24b6138f5beb08ad88cacc0c884c2bd6c60 (patch)
tree42a21e7742dbc2bbc6f428c01f49d5b4c3f66cc1
parentafff918d98600dc1b3857dad62b4ddefb09d1048 (diff)
Players added to protector can punch to see protected areaHEADmaster
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index ebedb4a..24628d6 100644
--- a/init.lua
+++ b/init.lua
@@ -331,7 +331,7 @@ minetest.register_node("protector:protect", {
on_punch = function(pos, node, puncher)
- if not protector.can_dig(1, pos, puncher:get_player_name(), true, 1) then
+ if minetest.is_protected(pos, puncher:get_player_name()) then
return
end
@@ -412,7 +412,7 @@ minetest.register_node("protector:protect2", {
on_punch = function(pos, node, puncher)
- if not protector.can_dig(1, pos, puncher:get_player_name(), true, 1) then
+ if minetest.is_protected(pos, puncher:get_player_name()) then
return
end