aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-03-01 21:19:34 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-03-01 21:19:34 -0600
commit3d9098127dcb2059bc975561891e97c61d7d9f74 (patch)
tree9beff16419a4c84eadb7635b2e9dfa03f1f0cb3a
parent82a8610e1d5b41b2da3bd6c2e8cf70713992978c (diff)
downloadskyblock-api-3d9098127dcb2059bc975561891e97c61d7d9f74.tar.gz
skyblock-api-3d9098127dcb2059bc975561891e97c61d7d9f74.tar.bz2
skyblock-api-3d9098127dcb2059bc975561891e97c61d7d9f74.zip
fix error on null players
-rw-r--r--src/hypixelCached.ts2
1 files changed, 1 insertions, 1 deletions
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<string> {
// 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
}