aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-09 20:49:37 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-09 20:49:37 +0100
commit08ddc931109bea80b81f2caabc430bd2dc54b60c (patch)
tree4539d8b7ad8a621afda1e716c8c6c10a33f71517 /src/main/java/at/hannibal2/skyhanni/features
parent28637e9a62d151c3b4c4f5c68b23608a32fe7c5f (diff)
downloadskyhanni-08ddc931109bea80b81f2caabc430bd2dc54b60c.tar.gz
skyhanni-08ddc931109bea80b81f2caabc430bd2dc54b60c.tar.bz2
skyhanni-08ddc931109bea80b81f2caabc430bd2dc54b60c.zip
Fixed corrupted Kada Knight getting detected as Revenant Slayer mini bosses.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt
index e384b5de8..529b8b4d2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt
@@ -36,7 +36,7 @@ class SlayerMiniBossFeatures {
val maxHealth = event.maxHealth
for (bossType in SlayerMiniBossType.entries) {
if (!bossType.health.any { entity.hasMaxHealth(it, true, maxHealth) }) continue
- if (!bossType.clazz.isInstance(entity)) continue
+ if (bossType.clazz != entity.javaClass) continue
miniBosses = miniBosses.editCopy { add(entity) }
RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.AQUA.toColor().withAlpha(127))