diff --git a/mods/game/chatcommands/init.lua b/mods/game/chatcommands/init.lua index 4c1f213..7c2b126 100644 --- a/mods/game/chatcommands/init.lua +++ b/mods/game/chatcommands/init.lua @@ -15,7 +15,7 @@ core.register_chatcommand("start", { local sucess = start_match(param) - if map_data == "nope :(" then + if not map_data then return false, "-!- Map not found!" end diff --git a/mods/game/functions/init.lua b/mods/game/functions/init.lua index e144a0d..d35d468 100644 --- a/mods/game/functions/init.lua +++ b/mods/game/functions/init.lua @@ -131,8 +131,8 @@ function start_match(map) -- Start the match place_map(map or "forest") -- default to forest if no map is specified - if map_data == nil then - return "nope :(" + if not map_data then + return nil end local map_loading_images = {}