diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-03-23 12:25:44 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-03-23 12:25:44 -0400 |
commit | ce8891a325d57894c53628165d1c0825576fa5bc (patch) | |
tree | abd522c1bcfafecdbb2250471553634a5707e446 | |
parent | 78ca95d5b47940857918abdf8b1b7a500e9918b9 (diff) |
Allow open areas inside closed areas to be used openly
-rw-r--r-- | api.lua | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |