aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-08-22 00:27:09 +0800
committerGitHub <noreply@github.com>2022-08-22 00:27:09 +0800
commit6c5718a0d213ebf0e1a727e369e1d310bfb8ff9a (patch)
tree86c4105b849a2efcbb42b3b8b5b662660890a941 /features
parent381214462080012b4f6842473887127bd0b59e07 (diff)
downloadSoopyV2-6c5718a0d213ebf0e1a727e369e1d310bfb8ff9a.tar.gz
SoopyV2-6c5718a0d213ebf0e1a727e369e1d310bfb8ff9a.tar.bz2
SoopyV2-6c5718a0d213ebf0e1a727e369e1d310bfb8ff9a.zip
prevent duplicated lines in miniboss hud
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"))