From 3d9098127dcb2059bc975561891e97c61d7d9f74 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 1 Mar 2021 21:19:34 -0600 Subject: fix error on null players --- src/hypixelCached.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 5338229..71e9de9 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -102,7 +102,7 @@ export async function uuidFromUser(user: string): Promise { // not cached, actually fetch mojang api now let { uuid, username } = await mojang.mojangDataFromUser(user) if (!uuid) { - usernameCache.set(uuid, null) + usernameCache.set(user, null) return } -- cgit