fix: catch more edge cases

This commit is contained in:
anavoi 2025-07-13 23:55:54 +02:00
commit b9a7a1c479
4 changed files with 28 additions and 25 deletions

View file

@ -93,14 +93,7 @@ Make sure to download a file from the examples given and rename it to config.jso
{
if (LobbyManager.Instance.LobbyStates.SelfState == LobbyState.Game.Online)
{
if (!Helper.hosting)
{
GBSUClient.JoinServer(Helper.serverip, Helper.serverport);
}
else
{
PushError("You are currently hosting a match! Please restart the game before attempting to join.");
}
GBSUClient.JoinServer(Helper.serverip, Helper.serverport);
}
else
{
@ -108,10 +101,6 @@ Make sure to download a file from the examples given and rename it to config.jso
}
}
}
else
{
PushError("Couldn't find the -ip CLI argument. Please refer to the documentation.");
}
if (GUI.Button(new Rect(20f, 295f, 170f, 30f), "Cap FPS to 60"))
{