diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-19 06:41:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 06:41:46 +0800 |
commit | 3276bc762947f894995ffcf567403210d8563d7c (patch) | |
tree | a829e42d5c07d8174715324093444c422502188f | |
parent | 4afe0acb668247f28f29c5a7e3e0e55e134ae2ec (diff) | |
parent | 2ed8a3d07cb20172d4f499dca8b422643e30bce2 (diff) | |
download | SoopyV2-3276bc762947f894995ffcf567403210d8563d7c.tar.gz SoopyV2-3276bc762947f894995ffcf567403210d8563d7c.tar.bz2 SoopyV2-3276bc762947f894995ffcf567403210d8563d7c.zip |
Merge pull request #73 from EmeraldMerchant/patch-65
-rw-r--r-- | src/features/nether/index.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/features/nether/index.js b/src/features/nether/index.js index 4b14c48..5b325fa 100644 --- a/src/features/nether/index.js +++ b/src/features/nether/index.js @@ -215,18 +215,6 @@ class Nether extends Feature { this.controlLocLast = undefined this.controlLoc = undefined } - - this.todoM2.forEach(e => { - 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 = new Entity(e) - } - } - }) - - this.todoM2 = this.todoM - this.todoM = [] } entityJoinWorldEvent(event) { @@ -354,6 +342,18 @@ class Nether extends Feature { } minibossHPHud() { + this.todoM2.forEach(e => { + 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 = new Entity(e) + } + } + }) + + this.todoM2 = this.todoM + this.todoM = [] + if (this.miniboss && this.miniboss.getEntity()[f.isDead]) this.miniboss = undefined if (!this.minibossNametag.getValue() || !this.miniboss) { this.minibossNametagElement.setText("") |