aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt
index faff3885a..5555af33c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt
@@ -9,7 +9,6 @@ import at.hannibal2.skyhanni.utils.EntityUtils.hasMaxHealth
import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import net.minecraft.client.Minecraft
-import net.minecraft.entity.Entity
import net.minecraft.entity.EntityLivingBase
import net.minecraft.entity.monster.EntityBlaze
import net.minecraft.entity.monster.EntityEnderman
@@ -23,7 +22,7 @@ import net.minecraftforge.fml.common.gameevent.TickEvent
class HighlightSlayerMiniboss {
private var tick = 0
- private val miniBosses = mutableListOf<Entity>()
+ private val miniBosses = mutableListOf<EntityLivingBase>()
@SubscribeEvent
fun onTick(event: TickEvent.ClientTickEvent) {
@@ -59,6 +58,7 @@ class HighlightSlayerMiniboss {
})
list.filter { it !in miniBosses && !DamageIndicatorManager.isBoss(it) }.forEach(miniBosses::add)
+ miniBosses.removeIf { DamageIndicatorManager.isBoss(it) }
}
@SubscribeEvent