Revert "Fix /start..."

This reverts commit 00b55b666a.
This commit is contained in:
IonicCheese 2026-02-19 12:06:52 -08:00
commit 7a69ef1351
2 changed files with 4 additions and 5 deletions

View file

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

View file

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