Try to fix replacement == null

This commit is contained in:
ArtDev 2020-12-17 16:27:51 +03:00 committed by GitHub
parent e300b6ff16
commit ac5888b6ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,9 +141,9 @@ public final class Tools
gameDir.mkdirs();
Map<String, String> varArgMap = new ArrayMap<String, String>();
varArgMap.put("auth_access_token", profile.accessToken);
varArgMap.put("auth_access_token", profile.accessToken == null ? "0" : profile.accessToken);
varArgMap.put("auth_player_name", username);
varArgMap.put("auth_uuid", profile.profileId);
varArgMap.put("auth_uuid", profile.profileId == null ? "0" : profile.profileId);
varArgMap.put("assets_root", Tools.ASSETS_PATH);
varArgMap.put("assets_index_name", versionInfo.assets);
varArgMap.put("game_assets", Tools.ASSETS_PATH);