diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-09-11 18:36:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 18:36:31 +0800 |
commit | a6f82817793c6ac904173fbb7077c2542ae5679b (patch) | |
tree | 81551655cfcf993100cb4b47ba458d3791f586f3 /features/nether/index.js | |
parent | c0474e6f8c15bae1a862adfaae328ea223d20041 (diff) | |
download | SoopyV2-a6f82817793c6ac904173fbb7077c2542ae5679b.tar.gz SoopyV2-a6f82817793c6ac904173fbb7077c2542ae5679b.tar.bz2 SoopyV2-a6f82817793c6ac904173fbb7077c2542ae5679b.zip |
changes
Diffstat (limited to 'features/nether/index.js')
-rw-r--r-- | features/nether/index.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/features/nether/index.js b/features/nether/index.js index d8e4db7..fa6a712 100644 --- a/features/nether/index.js +++ b/features/nether/index.js @@ -109,8 +109,7 @@ class Nether extends Feature { this.registerStep(true, 1, this.step1S).registeredWhen(() => this.isInNether()) this.registerEvent("renderWorld", this.renderWorld).registeredWhen(() => this.isInNether()) - this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(() => this.isInDojo()); - this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEventNether) + this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(() => this.isInDojo() || (this.isInNether() && this.minibossNametag.getValue())); this.registerEvent("tick", this.tick).registeredWhen(() => this.isInNether()) this.registerChat("&r&r&r &r&aTest of Swiftness &r&e&lOBJECTIVES&r", () => { if (this.speedNextBlock.getValue()) { @@ -217,7 +216,7 @@ class Nether extends Feature { } this.todoM2.forEach(e => { - let name = e.getName() + let name = e[m.getCustomNameTag]() if (name) { if (name.includes("Ashfang") || name.includes("Barbarian Duke X") || name.includes("Bladesoul") || name.includes("Mage Outlaw")) { this.miniboss = e @@ -234,11 +233,8 @@ class Nether extends Feature { if (this.disciplineOverlay.getValue() && this.inDiscipline && event.entity instanceof ArmorStand) this.todoF.push(new Entity(event.entity)) if (event.entity instanceof EntitySkeleton && !this.controlSkeleton) this.controlSkeleton = new Entity(event.entity) - } - - entityJoinWorldEventNether(event) { if (this.minibossNametag.getValue() && event.entity instanceof ArmorStand) { - this.todoM.push(new Entity(event.entity)) + this.todoM.push(event.entity) } } |