From 58409480517614ec3b34ac6564e16598b0892043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20ud=C3=A9n?= Date: Sun, 5 Mar 2023 15:10:18 +0100 Subject: [PATCH] Fix crash issue when requesting non existing user by name --- src/MojangAPIProxyServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MojangAPIProxyServer.ts b/src/MojangAPIProxyServer.ts index 864ebbe..4e1108e 100644 --- a/src/MojangAPIProxyServer.ts +++ b/src/MojangAPIProxyServer.ts @@ -79,7 +79,7 @@ export default class MojangAPIProxyServer { return; } - if (response.status == 404) { + if (response.status == 404 ||response.status == 204) { const cacheData: CachedUsernameToUUIDData = { data: null, found: false