From 8e55249bf19a44d829d802f14d31668a12239a12 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 11 Sep 2022 23:26:16 +0200 Subject: fixing slayer bosses getting marked as slayer mini bosses sometimes --- .../at/hannibal2/skyhanni/features/slayer/HighlightSlayerMiniboss.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') 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() + private val miniBosses = mutableListOf() @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 -- cgit