aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-19 06:41:46 +0800
committerGitHub <noreply@github.com>2022-09-19 06:41:46 +0800
commit3276bc762947f894995ffcf567403210d8563d7c (patch)
treea829e42d5c07d8174715324093444c422502188f
parent4afe0acb668247f28f29c5a7e3e0e55e134ae2ec (diff)
parent2ed8a3d07cb20172d4f499dca8b422643e30bce2 (diff)
downloadSoopyV2-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.js24
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("")