aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-11 23:26:16 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-11 23:26:16 +0200
commit8e55249bf19a44d829d802f14d31668a12239a12 (patch)
treeec8cc9547111b5e08c783636679c9fa7fd0fff26 /src/main
parentba4fa6ab58fa6dc9387f36a0899758d3df71ca21 (diff)
downloadskyhanni-8e55249bf19a44d829d802f14d31668a12239a12.tar.gz
skyhanni-8e55249bf19a44d829d802f14d31668a12239a12.tar.bz2
skyhanni-8e55249bf19a44d829d802f14d31668a12239a12.zip
fixing slayer bosses getting marked as slayer mini bosses sometimes
Diffstat (limited to 'src/main')
-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