diff --git a/src/util/minecraft.ts b/src/util/minecraft.ts index 32fe528..a14fa3a 100644 --- a/src/util/minecraft.ts +++ b/src/util/minecraft.ts @@ -2,7 +2,7 @@ export async function getJavaUuid(username: string) { const response = await fetch(`https://api.mojang.com/users/profiles/minecraft/${username}`); if (!response.ok) { // user doesn't exist - if (response.status == 404) throw new Error(); + if (response.status == 400 || response.status == 404) throw new Error(); // rate limit else if (response.status == 429) return null; return null;