fix quit button

This commit is contained in:
Mister_Nebula 2021-12-12 09:49:00 +00:00
parent a90677bfd5
commit 2f424bdf06

View File

@ -176,7 +176,7 @@ namespace QSB.Menus
DisconnectButton = MenuApi.PauseMenu_MakeMenuOpenButton("DISCONNECT", DisconnectPopup);
QuitButton = Resources.FindObjectsOfTypeAll<SubmitActionLoadScene>().First(x => x.name == "Button-ExitToMainMenu").gameObject;
QuitButton = Locator.GetSceneMenuManager().pauseMenu._exitToMainMenuAction.gameObject;
if (QSBCore.IsInMultiplayer)
{