Resolve comments

This commit is contained in:
Supergoat666
2020-08-25 02:21:05 +02:00
parent a615b80a22
commit aced077da7
2 changed files with 24 additions and 34 deletions

View File

@ -98,12 +98,9 @@ function areas:canInteract(pos, name)
return true
end
else
local factions_names = area.faction_open
if factions_names ~= nil then
for _, fname in ipairs(factions_names) do
if factions.player_is_in_faction(fname, name) then
return true
end
for _, fname in ipairs(area.faction_open or {}) do
if factions.player_is_in_faction(fname, name) then
return true
end
end
end