diff options
author | nea <nea@nea.moe> | 2023-06-02 02:42:42 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-02 02:42:42 +0200 |
commit | add5eb6a4a1c8228e789f90ca100fc92f12baaea (patch) | |
tree | f77bc531e40208efa79b32e5b5d8c28d076aa31f /src/main/kotlin/moe/nea/firmament/gui | |
parent | 3d76538cef0cb150415ef5db734c80fb0dec7e85 (diff) | |
download | Firmament-add5eb6a4a1c8228e789f90ca100fc92f12baaea.tar.gz Firmament-add5eb6a4a1c8228e789f90ca100fc92f12baaea.tar.bz2 Firmament-add5eb6a4a1c8228e789f90ca100fc92f12baaea.zip |
Improve floating point number formatting
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt b/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt index d189b5b..88e477c 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/profileviewer/SkillPage.kt @@ -14,6 +14,7 @@ import net.minecraft.util.Formatting import moe.nea.firmament.apis.Skill import moe.nea.firmament.gui.WBar import moe.nea.firmament.repo.RepoManager +import moe.nea.firmament.util.FirmFormatters import moe.nea.firmament.util.toShedaniel object SkillPage : ProfilePage { @@ -45,7 +46,7 @@ object SkillPage : ProfilePage { ) { override fun addTooltip(tooltip: TooltipBuilder) { tooltip.add(Text.literal("$level/$maxLevel")) - tooltip.add(Text.translatable("firmament.pv.skills.total", exp)) + tooltip.add(Text.translatable("firmament.pv.skills.total", FirmFormatters.toString(exp, 1))) } }, 4, i + 1, 4, 1) } |