From b10f400e4a005cb52c4e9f0550cf21f197f98f28 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 12 Jun 2025 23:17:19 +0200 Subject: [PATCH] update java uuid query --- src/util/minecraft.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/minecraft.ts b/src/util/minecraft.ts index 650954b..32fe528 100644 --- a/src/util/minecraft.ts +++ b/src/util/minecraft.ts @@ -1,10 +1,10 @@ export async function getJavaUuid(username: string) { const response = await fetch(`https://api.mojang.com/users/profiles/minecraft/${username}`); if (!response.ok) { - // rate limit - if (response.status == 429) return null; // user doesn't exist - else if (response.status < 500) throw new Error(); + if (response.status == 404) throw new Error(); + // rate limit + else if (response.status == 429) return null; return null; } const json = await response.json();