summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 95a3987..a83120d 100644
--- a/api.lua
+++ b/api.lua
@@ -24,7 +24,9 @@ function areas:canInteract(pos, name)
if area.owner == name then
return true
else
- owned = true
+ if not area.open then
+ owned = true
+ end
end
end
return not owned