mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Фикс неработоспособности Mojang авторизации
This commit is contained in:
parent
68cb755212
commit
ff30ba2670
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ public final class JoinServerRequest extends Request<JoinServerRequestEvent> imp
|
|||
@LauncherAPI
|
||||
public JoinServerRequest(String username, String accessToken, String serverID) {
|
||||
this.username = VerifyHelper.verifyUsername(username);
|
||||
this.accessToken = SecurityHelper.verifyToken(accessToken);
|
||||
this.accessToken = accessToken;
|
||||
this.serverID = VerifyHelper.verifyServerID(serverID);
|
||||
}
|
||||
|
||||
|
|
|
@ -208,6 +208,7 @@ public void joinServer(GameProfile profile, String accessToken, String serverID)
|
|||
try {
|
||||
success = new JoinServerRequest(username, accessToken, serverID).request().allow;
|
||||
} catch (Exception e) {
|
||||
LogHelper.error(e);
|
||||
throw new AuthenticationUnavailableException(e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue