[FIX] Фикс неработоспособности Mojang авторизации

This commit is contained in:
Gravit 2019-10-21 22:34:08 +07:00
parent 68cb755212
commit ff30ba2670
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}

View file

@ -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);
}