From 38f72e98a01a6ade00c4e9eae45e7b57679184f2 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 28 Dec 2021 14:56:52 +0800 Subject: - add compact progress hud element - Fix better skyblock menu clicks blocking selling pets to george --- features/cosmetics/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'features/cosmetics') 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() } -- cgit