diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-03-01 21:22:19 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-03-01 21:22:19 -0600 |
commit | bbdcf2665d1c76c903de12aa357877ca02df741f (patch) | |
tree | 541936b93f477c64c1738edbdbdc80403508c9f5 /build/hypixelCached.js | |
parent | e243979611f6855997fbc704bbc499781171578e (diff) | |
download | skyblock-api-bbdcf2665d1c76c903de12aa357877ca02df741f.tar.gz skyblock-api-bbdcf2665d1c76c903de12aa357877ca02df741f.tar.bz2 skyblock-api-bbdcf2665d1c76c903de12aa357877ca02df741f.zip |
Update hypixelCached.ts
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r-- | build/hypixelCached.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 00cc828..d41da97 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -102,7 +102,7 @@ async function uuidFromUser(user) { // check if the username is a value const uuidToUsername = usernameCache.mget(usernameCache.keys()); for (const [uuid, username] of Object.entries(uuidToUsername)) { - if (username.toLowerCase && user.toLowerCase() === username.toLowerCase()) + if (username && username.toLowerCase && user.toLowerCase() === username.toLowerCase()) return uuid; } if (_1.debug) |