From 44a1fda831b162b670f7e9d63151c12170863a9d Mon Sep 17 00:00:00 2001 From: Bitl Date: Sat, 30 Oct 2021 13:08:28 -0700 Subject: [PATCH] Update ServerBrowser.cs --- Novetus/NovetusLauncher/Forms/ServerBrowser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Novetus/NovetusLauncher/Forms/ServerBrowser.cs b/Novetus/NovetusLauncher/Forms/ServerBrowser.cs index 387b7f3..0afc6b4 100644 --- a/Novetus/NovetusLauncher/Forms/ServerBrowser.cs +++ b/Novetus/NovetusLauncher/Forms/ServerBrowser.cs @@ -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); } }