diff options
author | Brandon <brandon@bremaweb.com> | 2013-12-02 09:25:03 -0600 |
---|---|---|
committer | Brandon <brandon@bremaweb.com> | 2013-12-02 09:25:03 -0600 |
commit | f48e850ed8089a8a3469244ea6c32b6a9a890abf (patch) | |
tree | df72f489f6cd79e97de93e88e4d6d66c0764c580 | |
parent | 88b37c0d4fe9779d731c55505497600dcc87d575 (diff) |
check for nil player in protection_violation
-rw-r--r-- | protection.lua | 5 |
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 |