oops, forgot this

This commit is contained in:
Bitl 2021-03-24 14:27:09 -07:00
parent ce8caef153
commit fbf82658ce
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,8 @@ namespace NovetusLauncher
VarStorage.GameServer curServer = serverList[selectedServer]; VarStorage.GameServer curServer = serverList[selectedServer];
if (ServerListView.Items[selectedServer].Text == curServer.ServerName) if (ServerListView.Items[selectedServer].Text == curServer.ServerName)
{ {
string oldIP = GlobalVars.IP;
int oldPort = GlobalVars.JoinPort;
GlobalVars.IP = curServer.ServerIP; GlobalVars.IP = curServer.ServerIP;
GlobalVars.JoinPort = curServer.ServerPort; GlobalVars.JoinPort = curServer.ServerPort;
#if LAUNCHER #if LAUNCHER
@ -104,6 +106,8 @@ namespace NovetusLauncher
#else #else
GlobalFuncs.LaunchRBXClient(curServer.ServerClient, ScriptType.Client, false, false, null); GlobalFuncs.LaunchRBXClient(curServer.ServerClient, ScriptType.Client, false, false, null);
#endif #endif
GlobalVars.IP = oldIP;
GlobalVars.JoinPort = oldPort;
} }
} }
} }