diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-06-29 22:56:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 22:56:10 +0800 |
commit | f0479a00f189a57d0f2651daed66d2b8e9dd6e16 (patch) | |
tree | cea216cf60d48842607a6459b1d66ab32c8b17ef /features | |
parent | 36f4c292f9edde4dbf0789f83f2cabebdb656fbb (diff) | |
download | SoopyV2-f0479a00f189a57d0f2651daed66d2b8e9dd6e16.tar.gz SoopyV2-f0479a00f189a57d0f2651daed66d2b8e9dd6e16.tar.bz2 SoopyV2-f0479a00f189a57d0f2651daed66d2b8e9dd6e16.zip |
fix a place
+ added a missing ! that makes something not working
Diffstat (limited to 'features')
-rw-r--r-- | features/slayers/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index a3ae2d5..d8d6874 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -394,11 +394,10 @@ class Slayers extends Feature { if (this.BoxAroundMiniboss.getValue() || this.betterHideDeadEntity.getValue() || this.summonsHideNametag.getValue() || this.summonsShowNametag.getValue() || this.summonsLowWarning.getValue()) { World.getAllEntitiesOfType(net.minecraft.entity.item.EntityArmorStand).forEach((name) => { if (this.cannotFindEmanBoss) { - if (this.bossSpawnedMessage) { + if (!this.bossSpawnedMessage) { this.emanBoss = undefined this.cannotFindEmanBoss = false - } - if (name.getName().removeFormatting().includes("Voidgloom Seraph") && ((name.getX() - Player.getX()) ** 2 + (name.getY() - Player.getY()) ** 2 + (name.getZ() - Player.getZ()) ** 2 < 25)) { + } else if (name.getName().removeFormatting().includes("Voidgloom Seraph") && ((name.getX() - Player.getX()) ** 2 + (name.getY() - Player.getY()) ** 2 + (name.getZ() - Player.getZ()) ** 2 < 25)) { this.emanBoss = name this.cannotFindEmanBoss = false } |