mirror of
https://github.com/minetest-mods/areas.git
synced 2024-09-27 23:20:18 +02:00
Enable opening area to many factions
This commit is contained in:
parent
75a0c60c55
commit
fae1dae051
|
@ -322,10 +322,14 @@ if areas.factions_available then
|
||||||
table.insert(fnames,fname)
|
table.insert(fnames,fname)
|
||||||
end
|
end
|
||||||
local open = true
|
local open = true
|
||||||
|
local accessibility = ""
|
||||||
if #fnames == 0 then
|
if #fnames == 0 then
|
||||||
open = false
|
open = false
|
||||||
fnames = nil
|
fnames = nil
|
||||||
|
else
|
||||||
|
accessibility = " It is open for members of : "..table.concat(fnames,", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
areas.areas[id].factions_names = fnames
|
areas.areas[id].factions_names = fnames
|
||||||
-- Save false as nil to avoid inflating the DB.
|
-- Save false as nil to avoid inflating the DB.
|
||||||
areas.areas[id].faction_open = open or nil
|
areas.areas[id].faction_open = open or nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user