add SmallJoker's modifications

This commit is contained in:
Supergoat666
2020-08-25 10:40:45 +02:00
parent 36059b8559
commit cf862f7ce6
5 changed files with 29 additions and 15 deletions

View File

@ -92,7 +92,7 @@ function areas:canInteract(pos, name)
if area.owner == name or area.open then
return true
elseif areas.factions_available and area.faction_open then
if factions.version == nil or factions.version < 2 then
if (factions.version or 0) < 2 then
local faction_name = factions.get_player_faction(area.owner)
if faction_name ~= nil and faction_name == factions.get_player_faction(name) then
return true