aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-10-28 18:01:46 +0200
committerGitHub <noreply@github.com>2023-10-28 18:01:46 +0200
commit2ab5969b680885ab158b58adfc812974e61687e2 (patch)
treed8a904dc979284c8540f590cbd34cb9298356af8 /src/main
parented6b5ca8d6f1ca430096a23b3ac66cf2acc79e9c (diff)
downloadskyhanni-2ab5969b680885ab158b58adfc812974e61687e2.tar.gz
skyhanni-2ab5969b680885ab158b58adfc812974e61687e2.tar.bz2
skyhanni-2ab5969b680885ab158b58adfc812974e61687e2.zip
i'm bad (#640)
Fixed Sack Display Error again #640
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
index 2a7498354..bf02e6002 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
@@ -97,7 +97,7 @@ object SackDisplay {
when (config.numberFormat) {
0 -> "$colorCode${stored}§7/§b${total}"
1 -> "$colorCode${NumberUtil.format(stored.formatNumber())}§7/§b${total}"
- 2 -> "$colorCode${stored}§7/§b${total.formatNumber().toInt().addSeparators()}"
+ 2 -> "$colorCode${stored}§7/§b${total.formatNumber().addSeparators()}"
else -> "$colorCode${stored}§7/§b${total}"
}
)
@@ -111,7 +111,7 @@ object SackDisplay {
listOf(
"§6Magmafish: §b${magmaFish.addSeparators()}",
"§6Magmafish value: §b${price / magmaFish}",
- "§6Magmafish per: §b${magmaFish / stored.toLong()}"
+ "§6Magmafish per: §b${magmaFish / stored.formatNumber()}"
)
)