@@ -64,7 +64,7 @@ function G.FUNCS.custom_seed_overlay(e)
6464end
6565
6666G .FUNCS .change_pvp_countdown_seconds = function (args )
67- MP .LOBBY .config .pvp_countdown_seconds = args .to_val
67+ MP .LOBBY .config .pvp_countdown_seconds = args .to_val
6868 MP .ACTIONS .update_lobby_options ()
6969end
7070
@@ -159,9 +159,9 @@ function G.FUNCS.lobby_leave(e)
159159end
160160
161161function G .FUNCS .open_lobby_options (e )
162- G .FUNCS .overlay_menu ({
163- definition = G .UIDEF .create_UIBox_lobby_options (),
164- })
162+ G .FUNCS .overlay_menu ({
163+ definition = G .UIDEF .create_UIBox_lobby_options (),
164+ })
165165end
166166
167167function G .FUNCS .lobby_ready_up (e )
@@ -204,7 +204,11 @@ function G.FUNCS.lobby_start_run(e, args)
204204end
205205
206206function G .FUNCS .mp_return_to_lobby ()
207- MP .ACTIONS .stop_game ()
207+ if G .STAGE ~= G .STAGES .MAIN_MENU then
208+ G .FUNCS .go_to_menu ()
209+ MP .UI .update_connection_status ()
210+ MP .reset_game_states ()
211+ end
208212end
209213
210214function G .FUNCS .mp_toggle_ready (e )
@@ -350,9 +354,9 @@ G.FUNCS.view_player_hash = function(e)
350354end
351355
352356for gamemode , _ in pairs (MP .Gamemodes ) do
353- G .FUNCS [" force_" .. gamemode ] = function (e )
357+ G .FUNCS [" force_" .. gamemode ] = function (e )
354358 sendDebugMessage (" Forcing gamemode: " .. gamemode , " MULTIPLAYER" )
355- MP .LOBBY .config .gamemode = gamemode
359+ MP .LOBBY .config .gamemode = gamemode
356360 G .FUNCS .start_lobby ()
357361 end
358362end
0 commit comments