Fix Realms API broke due to UUID with dashes

It’s weird that Realms API just returns empty list whenever UUID with dashes is passed. Without dashes, Realms is now working.
This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2022-12-20 17:52:32 +07:00
1 parent fe38eacf9d
commit 18c59126ba
1 file changed
+1 -1
@@ -161,7 +161,7 @@ public final class Tools
varArgMap.put("auth_session", profile.accessToken); // For legacy versions of MC
varArgMap.put("auth_access_token", profile.accessToken);
varArgMap.put("auth_player_name", username);
varArgMap.put("auth_uuid", profile.profileId);
varArgMap.put("auth_uuid", profile.profileId.replace("-", ""));
varArgMap.put("auth_xuid", profile.xuid);
varArgMap.put("assets_root", Tools.ASSETS_PATH);
varArgMap.put("assets_index_name", versionInfo.assets);