aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 13:30:48 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 13:30:48 +0100
commitc4beb4ff064d5e73f253db3f8701777ace557ac2 (patch)
tree9678ea395da54944fe57f7b21be16dae6aa4e67d /src/main/java/at/hannibal2
parentb57be8127b90b1c2cc69f4dffd1c002457a8cde4 (diff)
downloadskyhanni-c4beb4ff064d5e73f253db3f8701777ace557ac2.tar.gz
skyhanni-c4beb4ff064d5e73f253db3f8701777ace557ac2.tar.bz2
skyhanni-c4beb4ff064d5e73f253db3f8701777ace557ac2.zip
Fixed rare sea creature warning and highlight during Derpy.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt
index 8df5ed2d5..53fecc189 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt
@@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
import at.hannibal2.skyhanni.utils.LorenzUtils.editCopy
+import at.hannibal2.skyhanni.utils.LorenzUtils.ignoreDerpy
import at.hannibal2.skyhanni.utils.SimpleTimeMark
import at.hannibal2.skyhanni.utils.SoundUtils
import net.minecraft.entity.Entity
@@ -41,7 +42,7 @@ class SeaCreatureFeatures {
val entity = event.entity as? EntityLivingBase ?: return
if (DamageIndicatorManager.isBoss(entity)) return
- val maxHealth = event.maxHealth
+ val maxHealth = event.maxHealth.ignoreDerpy()
for (creatureType in RareSeaCreatureType.entries) {
if (!creatureType.health.any { entity.hasMaxHealth(it, false, maxHealth) }) continue
if (!creatureType.clazz.isInstance(entity)) continue