summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 0441ad6..13956ac 100644
--- a/init.lua
+++ b/init.lua
@@ -264,6 +264,8 @@ protector.old_is_protected = minetest.is_protected
-- check for protected area, return true if protected and digger isn't on list
function minetest.is_protected(pos, digger)
+ digger = digger or "" -- nil check
+
-- is area protected against digger?
if not protector.can_dig(protector.radius, pos, digger, false, 1) then