aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-11 22:59:37 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-11 22:59:37 +0200
commit7693ee41d191cec6584c9d5761e644fe4f738ea9 (patch)
tree3a608e88f9bd23625ffa0c669573e7d15308d86c /src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt
parent8b152bcddf4a99a64bda5974fefe1d50cc0a8f19 (diff)
downloadskyhanni-7693ee41d191cec6584c9d5761e644fe4f738ea9.tar.gz
skyhanni-7693ee41d191cec6584c9d5761e644fe4f738ea9.tar.bz2
skyhanni-7693ee41d191cec6584c9d5761e644fe4f738ea9.zip
using method hasMaxHealth
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt b/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt
index 99cd8615f..0d272771d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt
@@ -127,8 +127,8 @@ class SummoningMobManager {
continue
}
- val maxHealth = entityLiving.baseMaxHealth.toInt()
- val color = NumberUtil.percentageColor(currentHealth, maxHealth).getChatColor()
+ val maxHealth = entityLiving.baseMaxHealth
+ val color = NumberUtil.percentageColor(currentHealth.toLong(), maxHealth.toLong()).getChatColor()
val currentFormat = NumberUtil.format(currentHealth)
val maxFormat = NumberUtil.format(maxHealth)