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

@@ -1156,7 +1156,7 @@ setting.sfxvol.name = SFX Volume
setting.mutesound.name = Mute Sound setting.mutesound.name = Mute Sound
setting.crashreport.name = Send Anonymous Crash Reports setting.crashreport.name = Send Anonymous Crash Reports
setting.savecreate.name = Auto-Create Saves setting.savecreate.name = Auto-Create Saves
setting.publichost.name = Public Game Visibility setting.steampublichost.name = Public Game Visibility
setting.playerlimit.name = Player Limit setting.playerlimit.name = Player Limit
setting.chatopacity.name = Chat Opacity setting.chatopacity.name = Chat Opacity
setting.lasersopacity.name = Power Laser Opacity setting.lasersopacity.name = Power Laser Opacity

View File

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