aboutsummaryrefslogtreecommitdiff
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-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("")