diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-09-11 22:59:37 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-09-11 22:59:37 +0200 |
commit | 7693ee41d191cec6584c9d5761e644fe4f738ea9 (patch) | |
tree | 3a608e88f9bd23625ffa0c669573e7d15308d86c /src/main/java/at/hannibal2/skyhanni/features/SummoningMobManager.kt | |
parent | 8b152bcddf4a99a64bda5974fefe1d50cc0a8f19 (diff) | |
download | skyhanni-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.kt | 4 |
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) |