aboutsummaryrefslogtreecommitdiff
path: root/build/hypixelCached.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r--build/hypixelCached.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js
index fcdfcf9..8dac057 100644
--- a/build/hypixelCached.js
+++ b/build/hypixelCached.js
@@ -231,6 +231,10 @@ async function fetchBasicProfiles(user) {
if (_1.debug)
console.debug('Cache miss: fetchBasicProfiles', user);
const player = await fetchPlayer(playerUuid);
+ if (!player) {
+ console.log('bruh playerUuid', playerUuid);
+ return [];
+ }
const profiles = player.profiles;
exports.basicProfilesCache.set(playerUuid, profiles);
// cache the profile names and uuids to profileNameCache because we can