mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
check if server state is not loaded, and fix it
This commit is contained in:
parent
e1bc344c10
commit
ce33d3290c
@ -131,6 +131,21 @@ internal class ServerStateManager : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
if (_currentState == ServerState.NotLoaded
|
||||
&& QSBSceneManager.IsInUniverse
|
||||
&& QSBPlayerManager.LocalPlayer.State is ClientState.AliveInSolarSystem or ClientState.AliveInEye)
|
||||
{
|
||||
switch (QSBSceneManager.CurrentScene)
|
||||
{
|
||||
case OWScene.SolarSystem:
|
||||
new ServerStateMessage(ServerState.InSolarSystem).Send();
|
||||
break;
|
||||
case OWScene.EyeOfTheUniverse:
|
||||
new ServerStateMessage(ServerState.InEye).Send();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (_currentState == ServerState.WaitingForAllPlayersToReady)
|
||||
{
|
||||
if (QSBPlayerManager.PlayerList.All(x
|
||||
|
Loading…
x
Reference in New Issue
Block a user