diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-09-19 06:09:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 06:09:39 +0800 |
commit | 2ed8a3d07cb20172d4f499dca8b422643e30bce2 (patch) | |
tree | 9a36ee19e1b7d4541e2a0a5c61906aad458cbfdf /src | |
parent | 62d8649e1c9f91d0cd4864457924c79fce12569d (diff) | |
download | SoopyV2-2ed8a3d07cb20172d4f499dca8b422643e30bce2.tar.gz SoopyV2-2ed8a3d07cb20172d4f499dca8b422643e30bce2.tar.bz2 SoopyV2-2ed8a3d07cb20172d4f499dca8b422643e30bce2.zip |
fixed nether mini hp hud sometimes not working
Diffstat (limited to 'src')
-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("") |