From e23b136b7f26373cf5dfb4c6377b6c9b766d6ec5 Mon Sep 17 00:00:00 2001 From: Qugalet Date: Sun, 7 Jan 2024 01:45:49 +0200 Subject: [PATCH] Fix cracked account login (#79) * fix cracked account login * remove debug info --- .../java/com/legacyminecraft/poseidon/util/GetUUIDFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/legacyminecraft/poseidon/util/GetUUIDFetcher.java b/src/main/java/com/legacyminecraft/poseidon/util/GetUUIDFetcher.java index 6ac59cdf..6cb8c92d 100644 --- a/src/main/java/com/legacyminecraft/poseidon/util/GetUUIDFetcher.java +++ b/src/main/java/com/legacyminecraft/poseidon/util/GetUUIDFetcher.java @@ -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 {