Fix /start...

This commit is contained in:
IonicCheese 2026-02-19 12:04:07 -08:00
commit 00b55b666a
2 changed files with 5 additions and 4 deletions

View file

@ -13,9 +13,9 @@ core.register_chatcommand("start", {
return false, "-!- Match is already in progress!"
end
local sucess = start_match(param)
start_match(param)
if map_data == "nope :(" then
if map_data == nil then
return false, "-!- Map not found!"
end

View file

@ -1,7 +1,7 @@
-- Maps mod for SSG
local map_path = core.get_modpath("maps") .. "/maps/"
map_data = {}
map_data = nil
map_list = core.get_dir_list(map_path, true)
table.sort(map_list)
@ -14,7 +14,8 @@ function place_map(map)
map_pos = vector.new(1000 * (i - 1), 0, 0)
break
elseif i == #map_list then
return nil
map_data = nil
return
end
end