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