Skip to content

Commit

Permalink
Fix cracked account login (#79)
Browse files Browse the repository at this point in the history
* fix cracked account login

* remove debug info
  • Loading branch information
Andrmist authored Jan 6, 2024
1 parent 794a4f9 commit e23b136
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static UUIDAndUsernameResult getUUID(String username) {

} catch (Exception exception) {
UUIDResult uuidResult = null;
if (exception == null || exception.getMessage() == null) {
if (exception == null || exception instanceof FileNotFoundException || exception.getMessage() == null) {
// This is a hacky solution to tell if the API is offline, or the user is cracked.
uuidResult = new UUIDResult(generateOfflineUUID(username), UUIDResult.ReturnType.OFFLINE);
} else {
Expand Down

0 comments on commit e23b136

Please sign in to comment.