From 0fc282313e1e4ace55f479c736d644f7ad0cba0e Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 1 Apr 2014 09:41:31 -0500 Subject: fix protection when nil name is passed to can_interact --- protection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protection.lua b/protection.lua index 7fbb3bf..5adcd7e 100644 --- a/protection.lua +++ b/protection.lua @@ -2,7 +2,7 @@ landrush.offense = {} function landrush.can_interact(pos, name) - if ( pos.y < -200 ) then + if ( pos.y < -200 or name == '' or name == nil ) then return true end -- cgit v1.2.3