From ce8891a325d57894c53628165d1c0825576fa5bc Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 23 Mar 2014 12:25:44 -0400 Subject: [PATCH] Allow open areas inside closed areas to be used openly --- api.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api.lua b/api.lua index a83120d..d6a2cfd 100644 --- a/api.lua +++ b/api.lua @@ -21,12 +21,10 @@ function areas:canInteract(pos, name) end local owned = false for _, area in pairs(self:getAreasAtPos(pos)) do - if area.owner == name then + if area.owner == name or area.open then return true else - if not area.open then - owned = true - end + owned = true end end return not owned