aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/cosmetic/dragon
diff options
context:
space:
mode:
Diffstat (limited to 'features/cosmetics/cosmetic/dragon')
-rw-r--r--features/cosmetics/cosmetic/dragon/dragonWings.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js
index 88018a9..2516acf 100644
--- a/features/cosmetics/cosmetic/dragon/dragonWings.js
+++ b/features/cosmetics/cosmetic/dragon/dragonWings.js
@@ -305,10 +305,12 @@ class DragonWings extends Cosmetic {
if(this.player.getPlayer()[m.isInvisibleToPlayer](Player.getPlayer())){
return
}
+ if(!this.parent.ownCosmeticAudio.getValue()){
+ return
+ }
let horisontalSpeed = Math.sqrt((this.player.getPlayer()[f.posX.Entity]-this.player.getPlayer()[f.lastTickPosX])**2+(this.player.getPlayer()[f.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ])**2)
- let verticleSpeed = this.player.getPlayer()[f.posY.Entity]-this.player.getPlayer()[f.lastTickPosY]
-
+
// if((this.player === Player &&this.player.getPlayer().field_71075_bZ.field_75100_b) || (this.player !== Player && Math.abs(verticleSpeed)<0.2 && !this.player.getPlayer().field_70122_E)){//playerCapabilities.isFlying
if(this.flying){ //flying