Bugfixes
This commit is contained in:
@@ -233,7 +233,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
||||
|
||||
@Override
|
||||
public void onLobbyEnter(SteamID steamIDLobby, int chatPermissions, boolean blocked, ChatRoomEnterResponse response){
|
||||
Log.info("enter lobby @ @", steamIDLobby.getAccountID(), response);
|
||||
Log.info("onLobbyEnter @ @", steamIDLobby.getAccountID(), response);
|
||||
|
||||
if(response != ChatRoomEnterResponse.Success){
|
||||
ui.loadfrag.hide();
|
||||
@@ -241,6 +241,17 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
||||
return;
|
||||
}
|
||||
|
||||
int version = Strings.parseInt(smat.getLobbyData(steamIDLobby, "version"), -1);
|
||||
|
||||
//check version
|
||||
if(version != Version.build){
|
||||
ui.loadfrag.hide();
|
||||
ui.showInfo("[scarlet]" + (version > Version.build ? KickReason.clientOutdated : KickReason.serverOutdated).toString() + "\n[]" +
|
||||
Core.bundle.format("server.versions", Version.build, version));
|
||||
smat.leaveLobby(steamIDLobby);
|
||||
return;
|
||||
}
|
||||
|
||||
logic.reset();
|
||||
net.reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user