Fixed Steam kicking
This commit is contained in:
@@ -263,7 +263,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
||||
//check version
|
||||
if(version != Version.build){
|
||||
ui.loadfrag.hide();
|
||||
ui.showInfo("[scarlet]" + (version > Version.build ? KickReason.clientOutdated : KickReason.serverOutdated).toString() + "\n[]" +
|
||||
ui.showInfo("[scarlet]" + (version > Version.build ? KickReason.clientOutdated : KickReason.serverOutdated) + "\n[]" +
|
||||
Core.bundle.format("server.versions", Version.build, version));
|
||||
smat.leaveLobby(steamIDLobby);
|
||||
return;
|
||||
@@ -437,6 +437,12 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
||||
return true;//state.isConnectionActive();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void kickDisconnect(){
|
||||
//delay the close so the kick packet can be sent on steam
|
||||
Core.app.post(() -> Core.app.post(this::close));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close(){
|
||||
disconnectSteamUser(sid);
|
||||
|
||||
Reference in New Issue
Block a user