From 00b55b666a95f812461ef84bc30dc2b3a8e11576 Mon Sep 17 00:00:00 2001 From: IonicCheese Date: Thu, 19 Feb 2026 12:04:07 -0800 Subject: [PATCH] Fix /start... --- mods/game/chatcommands/init.lua | 4 ++-- mods/game/maps/init.lua | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mods/game/chatcommands/init.lua b/mods/game/chatcommands/init.lua index 4c1f213..066d1c1 100644 --- a/mods/game/chatcommands/init.lua +++ b/mods/game/chatcommands/init.lua @@ -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 diff --git a/mods/game/maps/init.lua b/mods/game/maps/init.lua index 764a97b..b99b41c 100644 --- a/mods/game/maps/init.lua +++ b/mods/game/maps/init.lua @@ -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