aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/cosmetic/dragon
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-17 17:24:24 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-17 17:24:24 +0800
commit5e68ecb56a9ec04c55809c1471bd836b99a062ef (patch)
tree075ead600d0f074073164fd9bfe4f3c764bf9735 /features/cosmetics/cosmetic/dragon
parentf9085b19e0bc3d4bc28fc13a5603a31a91ee7c20 (diff)
downloadSoopyV2-5e68ecb56a9ec04c55809c1471bd836b99a062ef.tar.gz
SoopyV2-5e68ecb56a9ec04c55809c1471bd836b99a062ef.tar.bz2
SoopyV2-5e68ecb56a9ec04c55809c1471bd836b99a062ef.zip
optimisation to disabling essential wing cosmetics
Diffstat (limited to 'features/cosmetics/cosmetic/dragon')
-rw-r--r--features/cosmetics/cosmetic/dragon/dragonWings.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js
index 8638b93..a5b76d8 100644
--- a/features/cosmetics/cosmetic/dragon/dragonWings.js
+++ b/features/cosmetics/cosmetic/dragon/dragonWings.js
@@ -291,12 +291,17 @@ class DragonWings extends Cosmetic {
if(wingCosmetic !== null){
this.player.getPlayer().getEssentialCosmeticModels().get(Essential.instance.getConnectionManager().getCosmeticsManager().getCosmetic(wingCosmetic)).getModel().getModel().boneList.forEach(b=>{
b.isHidden = true
+ this.parent.hiddenCosmetics.push(b)
})
}else{
let fullBodyCosmetic = this.player.getPlayer().getEssentialCosmetics().get(EssentialCosmeticSlot.FULL_BODY)
if(fullBodyCosmetic === "DRAGON_ONESIE_2"){
this.player.getPlayer().getEssentialCosmeticModels().get(Essential.instance.getConnectionManager().getCosmeticsManager().getCosmetic(fullBodyCosmetic)).getModel().getModel().boneList.forEach(b=>{
- if(b.boxName === "wing_left_1" || b.boxName === "wing_right_1")b.isHidden = true
+ if(b.boxName === "wing_left_1" || b.boxName === "wing_right_1"){
+ b.isHidden = true
+
+ this.parent.hiddenCosmetics.push(b)
+ }
})
}
}