fix 'rival' command

This commit is contained in:
Not
2022-10-07 17:59:27 +02:00
parent 7bd8a13b14
commit 107a81f67c
2 changed files with 50 additions and 22 deletions

View File

@ -18,6 +18,27 @@ local ColdStore = {}
local LiveStore = {}
-- GLOBAL
-- Returns a list of all maps with records
local function MapList()
local maps = {}
for map in pairs(ColdStore) do
maps[map] = true
end
for map in pairs(LiveStore) do
maps[map] = true
end
local maplist = {}
for map in pairs(maps) do
table.insert(maplist, map)
end
table.sort(maplist)
return maplist
end
rawset(_G, "lb_map_list", MapList)
-- GLOBAL
-- Function for adding records from lua
local function AddColdStore(record)