diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-19 06:53:59 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-19 06:53:59 +0800 |
commit | 627cddaf0aaf22058fd9788870a1b5a63502aeff (patch) | |
tree | c2cb257a73b88473b6036f79b77963042833f230 /src | |
parent | 238104a6e0aed478530c1a71f9f54f13395db252 (diff) | |
parent | 3276bc762947f894995ffcf567403210d8563d7c (diff) | |
download | SoopyV2-627cddaf0aaf22058fd9788870a1b5a63502aeff.tar.gz SoopyV2-627cddaf0aaf22058fd9788870a1b5a63502aeff.tar.bz2 SoopyV2-627cddaf0aaf22058fd9788870a1b5a63502aeff.zip |
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
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("") |