Improve area_faction_open

This commit is contained in:
Supergoat666
2020-08-18 13:57:18 +02:00
parent 04961bee69
commit b21e1891c2
4 changed files with 19 additions and 25 deletions

View File

@ -99,7 +99,7 @@ function areas:canInteract(pos, name)
return true
end
else
factions_names = area.factions_names
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