quit back to main menu on error/disconnect/kick

This commit is contained in:
Mister_Nebula 2021-12-08 10:57:00 +00:00
parent 478628bdb8
commit 557941399f

View File

@ -133,6 +133,11 @@ namespace QSB.Menus
OWTime.Unpause(OWTime.PauseType.System);
OWInput.RestorePreviousInputs();
if (QSBSceneManager.IsInUniverse)
{
LoadManager.LoadScene(OWScene.TitleScreen, LoadManager.FadeType.ToBlack, 2f, true);
}
}
private void CreateCommonPopups()
@ -307,7 +312,6 @@ namespace QSB.Menus
QSBCore.UnityEvents.RunWhen(() => QSBEventManager.Ready && PlayerTransformSync.LocalInstance != null, () =>
{
DebugLog.DebugWrite($"requesting game details");
QSBEventManager.FireEvent(EventNames.QSBRequestGameDetails);
});
}