diff options
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r-- | build/hypixelCached.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 82e8c93..a667ec4 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -114,7 +114,7 @@ async function uuidFromUser(user) { // set it as waitForCacheSet (a promise) in case uuidFromUser gets called while its fetching mojang usernameCache.set(util_1.undashUuid(user), waitForCacheSet(usernameCache, user, user)); // not cached, actually fetch mojang api now - let { uuid, username } = await mojang.mojangDataFromUser(user); + let { uuid, username } = await mojang.profileFromUser(user); if (!uuid) { usernameCache.set(user, null); return; @@ -139,7 +139,7 @@ async function usernameFromUser(user) { } if (_1.debug) console.log('Cache miss: usernameFromUser', user); - let { uuid, username } = await mojang.mojangDataFromUser(user); + let { uuid, username } = await mojang.profileFromUser(user); uuid = util_1.undashUuid(uuid); usernameCache.set(uuid, username); return username; |