summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protection.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/protection.lua b/protection.lua
index f55cf18..0ec1173 100644
--- a/protection.lua
+++ b/protection.lua
@@ -111,6 +111,11 @@ function landrush.protection_violation(pos,name)
-- this is the default discipline
local player = minetest.get_player_by_name(name)
+
+ if ( player == nil ) then
+ return
+ end
+
local owner = landrush.get_owner(pos)
if ( landrush.config:get_bool("requireClaim") == true ) then