diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-08-22 00:41:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 00:41:30 +0800 |
commit | e91835e466ea5112c5cb93d61dbea6c4268539e8 (patch) | |
tree | 7006d049b126f6556ccd28c5cb0ba4bda0988934 /features | |
parent | 6c5718a0d213ebf0e1a727e369e1d310bfb8ff9a (diff) | |
download | SoopyV2-e91835e466ea5112c5cb93d61dbea6c4268539e8.tar.gz SoopyV2-e91835e466ea5112c5cb93d61dbea6c4268539e8.tar.bz2 SoopyV2-e91835e466ea5112c5cb93d61dbea6c4268539e8.zip |
oops its x[0] not x
Diffstat (limited to 'features')
-rw-r--r-- | features/slayers/index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index d090e9b..3a06139 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -800,14 +800,15 @@ class Slayers extends Feature { if (this.MinibossGuiElement.getValue() && !this.bossSpawnedMessage && this.minibossEntity.length > 0) { let PY = Player.getY() + let minis = this.minibossEntity let tempArray = [] let tempEntity = [] - this.minibossEntity.forEach((x) => {//this.SlayerHeight[slayerType] values are negative - if (tempEntity.includes(x)) return + minis.forEach((x) => {//this.SlayerHeight[slayerType] values are negative + if (tempEntity.includes(x[0])) 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) + tempEntity.push(x[0]) tempArray.push(name) }) this.MinibossElement.setText(tempArray.join("\n")) |