diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-07 15:44:46 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-07 15:44:46 +0800 |
commit | 201237a0eaaefd6576b7a305897bf12b4add0f1a (patch) | |
tree | 7c39b02462c4ed78525bc39745617947793f563d | |
parent | 6accfc8d22f8873040f347abaf45e9008686a203 (diff) | |
download | SoopyV2-201237a0eaaefd6576b7a305897bf12b4add0f1a.tar.gz SoopyV2-201237a0eaaefd6576b7a305897bf12b4add0f1a.tar.bz2 SoopyV2-201237a0eaaefd6576b7a305897bf12b4add0f1a.zip |
Mapping fixes for dragon wings and deletesoopyv1 thing
-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 |