Update ServerBrowser.cs

This commit is contained in:
Bitl 2021-10-30 13:08:28 -07:00
parent db1b4de623
commit 44a1fda831
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ namespace NovetusLauncher
if (ServerListView.Items.Count > 0 && ServerListView.Items[selectedServer] != null && serverList[selectedServer] != null)
{
VarStorage.GameServer curServer = serverList[selectedServer];
if (ServerListView.Items[selectedServer].Text == curServer.ServerName)
if (curServer.IsValid())
{
oldIP = GlobalVars.IP;
oldPort = GlobalVars.JoinPort;
@ -58,6 +58,7 @@ namespace NovetusLauncher
catch (Exception ex)
{
GlobalFuncs.LogExceptions(ex);
MessageBox.Show("Cannot join server (" + ex.GetBaseException().Message + ").", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}