diff options
-rw-r--r-- | features/cosmetics/cosmetic/dragon/dragonWings.js | 7 | ||||
-rw-r--r-- | index.js | 14 |
2 files changed, 16 insertions, 5 deletions
diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js index 4044e85..51579fc 100644 --- a/features/cosmetics/cosmetic/dragon/dragonWings.js +++ b/features/cosmetics/cosmetic/dragon/dragonWings.js @@ -50,7 +50,7 @@ class DragonWings extends Cosmetic { // console.log(rotation, entity.getEntity().field_70761_aq+(entity.getEntity().field_70761_aq-entity.getEntity().field_70760_ar)*ticks) 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.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ] + let verticleSpeed = this.player.getPlayer()[f.posY.Entity]-this.player.getPlayer()[f.lastTickPosY] this.animOffset += Math.min(1, horisontalSpeed)*10*timeSince+1*timeSince @@ -301,8 +301,7 @@ class DragonWings extends Cosmetic { } 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.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ] + 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 @@ -371,7 +370,7 @@ class DragonWings extends Cosmetic { 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.posZ.Entity]-this.player.getPlayer()[f.lastTickPosZ] + let verticleSpeed = this.player.getPlayer()[f.posY.Entity]-this.player.getPlayer()[f.lastTickPosY] this.animOffset += Math.min(1, horisontalSpeed)*10*timeSince+1*timeSince @@ -12,4 +12,16 @@ register("command", ()=>{ require("./mappings/mappingCreator.js") }).setName("soopyreloadmappingsfile") -new SoopyAddons() +if(FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true"){ + new Thread(()=>{ + Thread.sleep(2000) + const File = Java.type("java.io.File") + FileLib.deleteDirectory(new File("./config/ChatTriggers/modules/soopyAddons")) + + FileLib.write("soopyAddonsData", "deletesoopyv1please.txt", "false") + + ChatLib.command("ct reload", true) + }).start() +}else{ + new SoopyAddons() +}
\ No newline at end of file |