Dont disconnect when connecting to steam servers on non steam (#5617)

This will allow sending steam players to steam servers while completely ignoring non steam ones.
This commit is contained in:
buthed010203 2021-07-19 18:42:03 -04:00 committed by GitHub
parent b7f7be839d
commit aab2437c4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,6 +290,7 @@ public class NetClient implements ApplicationListener{
@Remote(called = Loc.client, variants = Variant.one)
public static void connect(String ip, int port){
if(!steam && ip.startsWith("steam:")) return;
netClient.disconnectQuietly();
logic.reset();