From 38fd5ebc069948d23bce980ff858491e4a8e647f Mon Sep 17 00:00:00 2001 From: tycrek Date: Thu, 13 Jan 2022 11:45:47 -0700 Subject: [PATCH] Removed "cracked" Microsoft account because it doesn't make any sense --- .../mc/auth/service/MsaAuthenticationService.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/github/steveice10/mc/auth/service/MsaAuthenticationService.java b/src/main/java/com/github/steveice10/mc/auth/service/MsaAuthenticationService.java index 9fad62a..0f61a5f 100644 --- a/src/main/java/com/github/steveice10/mc/auth/service/MsaAuthenticationService.java +++ b/src/main/java/com/github/steveice10/mc/auth/service/MsaAuthenticationService.java @@ -172,14 +172,9 @@ public void login() throws RequestException { throw new RequestException("Invalid response received."); else this.accessToken = response.access_token; - try { - getProfile(); - } catch (RequestException ex) { - ex.printStackTrace(); // this was ignored before - // We are on a cracked account - if (this.username == null || this.username.isEmpty()) - this.username = response.username; // Not sure what this username is but its sent back from the API - } + // Finalize login by fetching the profile + getProfile(); + this.loggedIn = true; }