aboutsummaryrefslogtreecommitdiff
path: root/build/hypixelCached.js
diff options
context:
space:
mode:
authormat-1 <github@matdoes.dev>2021-03-01 19:40:35 +0000
committermat-1 <github@matdoes.dev>2021-03-01 19:40:35 +0000
commit80fbc300471e138172f4527106cc2a6365894cd5 (patch)
treeb25c455f5fd418b0843d73191a2d47d2a069695e /build/hypixelCached.js
parent7786408cc11fdf752fd03339a59a6d7d717d547d (diff)
downloadskyblock-api-80fbc300471e138172f4527106cc2a6365894cd5.tar.gz
skyblock-api-80fbc300471e138172f4527106cc2a6365894cd5.tar.bz2
skyblock-api-80fbc300471e138172f4527106cc2a6365894cd5.zip
Compiled TS into JS
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r--build/hypixelCached.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js
index 880d0fb..c4a3743 100644
--- a/build/hypixelCached.js
+++ b/build/hypixelCached.js
@@ -137,6 +137,8 @@ async function fetchPlayer(user) {
path: 'player',
args: { uuid: playerUuid }
});
+ if (!cleanPlayer)
+ return;
// clone in case it gets modified somehow later
const cleanPlayerClone = Object.assign({}, cleanPlayer);
playerCache.set(playerUuid, cleanPlayerClone);