diff options
author | Brandon <brandon@bremaweb.com> | 2014-04-01 09:41:31 -0500 |
---|---|---|
committer | Brandon <brandon@bremaweb.com> | 2014-04-01 09:41:31 -0500 |
commit | 0fc282313e1e4ace55f479c736d644f7ad0cba0e (patch) | |
tree | b955fba1cf923c7c0ee91eeb62322bc6cad1b5d1 | |
parent | 8d5160c494b90a8bbc601b82249ef1636baa98ae (diff) |
fix protection when nil name is passed to can_interact
-rw-r--r-- | protection.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |