diff options
author | Luna <luna@alexia.lol> | 2024-05-03 14:07:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 14:07:46 +0200 |
commit | 37a9fd7df3695fcc0fb4dd5427a91b73bdadefbb (patch) | |
tree | d98eea116bde6df39468be209de81dd5953b1767 /src/main/java/at/hannibal2/skyhanni/features/skillprogress | |
parent | 23a5bc7eaf0e6ddc189b54d88d49d86c87174440 (diff) | |
download | skyhanni-37a9fd7df3695fcc0fb4dd5427a91b73bdadefbb.tar.gz skyhanni-37a9fd7df3695fcc0fb4dd5427a91b73bdadefbb.tar.bz2 skyhanni-37a9fd7df3695fcc0fb4dd5427a91b73bdadefbb.zip |
Feature: Add overflow crop milestones (#997)
Co-authored-by: HiZe <superhize@hotmail.com>
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/skillprogress')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillTooltip.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillTooltip.kt b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillTooltip.kt index 75c69f491..691ed4498 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillTooltip.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillTooltip.kt @@ -12,6 +12,7 @@ import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.NumberUtil.roundToPrecision import at.hannibal2.skyhanni.utils.NumberUtil.toRoman import at.hannibal2.skyhanni.utils.StringUtils +import at.hannibal2.skyhanni.utils.StringUtils.isRoman import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class SkillTooltip { @@ -29,7 +30,7 @@ class SkillTooltip { val split = stack.cleanName().split(" ") val skillName = split.first() val skill = SkillType.getByNameOrNull(skillName) ?: return - val useRoman = split.last().toIntOrNull() == null + val useRoman = split.last().isRoman() val skillInfo = SkillAPI.storage?.get(skill) ?: return val showCustomGoal = skillInfo.customGoalLevel != 0 && customGoalConfig.enableInSkillMenuTooltip var next = false |