aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/slayers/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 288d599..d090e9b 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -801,10 +801,13 @@ class Slayers extends Feature {
if (this.MinibossGuiElement.getValue() && !this.bossSpawnedMessage && this.minibossEntity.length > 0) {
let PY = Player.getY()
let tempArray = []
+ let tempEntity = []
this.minibossEntity.forEach((x) => {//this.SlayerHeight[slayerType] values are negative
+ if (tempEntity.includes(x)) return
if (Math.abs((x[0].getY() + this.SlayerHeight[x[1]] - PY)) > 6) return
let name = x[0].getName()
if (name.split(" ")[2] === "§e0§c❤") return
+ tempEntity.push(x)
tempArray.push(name)
})
this.MinibossElement.setText(tempArray.join("\n"))