From f48e850ed8089a8a3469244ea6c32b6a9a890abf Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 2 Dec 2013 09:25:03 -0600 Subject: check for nil player in protection_violation --- protection.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protection.lua') 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 -- cgit v1.2.3