aboutsummaryrefslogtreecommitdiff
path: root/src/hypixelCached.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r--src/hypixelCached.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index 8e630df..4ddb07c 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -129,6 +129,7 @@ export async function fetchPlayer(user: string): Promise<CleanPlayer> {
path: 'player',
args: { uuid: playerUuid }
})
+ if (!cleanPlayer) return
// clone in case it gets modified somehow later
const cleanPlayerClone = Object.assign({}, cleanPlayer)