From ab46e00c7199318450719814cc031da9bd220d18 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 19 Jun 2025 15:15:57 +0200 Subject: [PATCH] fix invalid input minecraft uuid search --- src/util/minecraft.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;