mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-10 21:40:19 +00:00
quit back to main menu on error/disconnect/kick
This commit is contained in:
parent
478628bdb8
commit
557941399f
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user