Fixed banned Steam users loading indefinitely

This commit is contained in:
Anuken
2023-12-05 15:17:55 -05:00
parent 91cc4f922e
commit 351c2c84f2
2 changed files with 3 additions and 3 deletions

View File

@@ -405,7 +405,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
final SteamID sid;
public SteamConnection(SteamID sid){
super(sid.getAccountID() + "");
super("steam:" + sid.getAccountID());
this.sid = sid;
Log.info("Created STEAM connection: @", sid.getAccountID());
}
@@ -440,7 +440,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
@Override
protected void kickDisconnect(){
//delay the close so the kick packet can be sent on steam
Core.app.post(() -> Core.app.post(this::close));
Time.runTask(10f, this::close);
}
@Override