From f0479a00f189a57d0f2651daed66d2b8e9dd6e16 Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Wed, 29 Jun 2022 22:56:10 +0800 Subject: fix a place + added a missing ! that makes something not working --- features/slayers/index.js | 5 ++--- 1 file 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 } -- cgit