From 728994f435e781eeffcba739698a1c21bba76a83 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 13 Feb 2021 17:39:12 -0600 Subject: fix inventories --- src/hypixelCached.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 33d33eb..bf3124a 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -190,7 +190,8 @@ export async function fetchProfileUuid(user: string, profile: string) { * @param profile A profile name or profile uuid */ export async function fetchProfile(user: string, profile: string): Promise { - const profileUuid = await fetchProfileUuid(user, profile) + const playerUuid = await uuidFromUser(user) + const profileUuid = await fetchProfileUuid(playerUuid, profile) if (profileCache.has(profileUuid)) { console.log('cache hit! fetchProfile') @@ -200,12 +201,14 @@ export async function fetchProfile(user: string, profile: string): Promise