diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-28 14:56:52 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-28 14:56:52 +0800 |
commit | 38f72e98a01a6ade00c4e9eae45e7b57679184f2 (patch) | |
tree | 22259e5980af8a0244a764b78b15c8710005f066 /features/cosmetics | |
parent | 67fe4fbbbee6d2042f67e5f56de5ff8be51f5c76 (diff) | |
download | SoopyV2-38f72e98a01a6ade00c4e9eae45e7b57679184f2.tar.gz SoopyV2-38f72e98a01a6ade00c4e9eae45e7b57679184f2.tar.bz2 SoopyV2-38f72e98a01a6ade00c4e9eae45e7b57679184f2.zip |
- add compact progress hud element
- Fix better skyblock menu clicks blocking selling pets to george
Diffstat (limited to 'features/cosmetics')
-rw-r--r-- | features/cosmetics/index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js index f442c45..55e16fc 100644 --- a/features/cosmetics/index.js +++ b/features/cosmetics/index.js @@ -100,12 +100,6 @@ class Cosmetics extends Feature { if(!this.enabled) return uuid = uuid.replace(/-/g,"") - if(!cosmetics){ - delete this.cosmeticsData[uuid] - return - } - this.cosmeticsData[uuid] = cosmetics - this.loadedCosmetics = this.loadedCosmetics.filter(cosmetic=>{ if(cosmetic.player.getUUID().toString().replace(/-/g,"") === uuid){ return false @@ -117,6 +111,12 @@ class Cosmetics extends Feature { }) delete this.uuidToCosmeticDirect[uuid] + + if(!cosmetics){ + delete this.cosmeticsData[uuid] + return + } + this.cosmeticsData[uuid] = cosmetics this.scanForNewCosmetics() } |