diff options
author | mat <github@matdoes.dev> | 2022-04-30 01:08:04 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-04-30 01:08:04 -0500 |
commit | 52c137665a9af78c0d509aaea5236f54169ddaf2 (patch) | |
tree | 7887c9024ced1ac4eebbbf08f9ae698ed7478f4b /src/cleaners/skyblock | |
parent | 2240140136b9dfc0faeb1d29edf037609f9e8c9c (diff) | |
download | skyblock-api-52c137665a9af78c0d509aaea5236f54169ddaf2.tar.gz skyblock-api-52c137665a9af78c0d509aaea5236f54169ddaf2.tar.bz2 skyblock-api-52c137665a9af78c0d509aaea5236f54169ddaf2.zip |
fix error
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r-- | src/cleaners/skyblock/skills.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/skills.ts b/src/cleaners/skyblock/skills.ts index 8d0f16d..8aeaffe 100644 --- a/src/cleaners/skyblock/skills.ts +++ b/src/cleaners/skyblock/skills.ts @@ -223,7 +223,7 @@ export async function cleanSkills(data: typedHypixelApi.SkyBlockProfileMember, p // if the player has no skills but has kills, we can assume they have the skills api off // (we check kills to know whether the profile is actually used, this is kinda arbitrary) - if (skills.length === 0 && Object.keys(data.stats).includes('kills')) { + if (skills.length === 0 && 'stats' in data && Object.keys(data.stats).includes('kills')) { return skillsFromSkyBlockAchievements(player.achievements.skyblock) } |