diff options
author | HiZe_ <superhize@hotmail.com> | 2023-10-28 18:01:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 18:01:46 +0200 |
commit | 2ab5969b680885ab158b58adfc812974e61687e2 (patch) | |
tree | d8a904dc979284c8540f590cbd34cb9298356af8 /src/main/java/at/hannibal2 | |
parent | ed6b5ca8d6f1ca430096a23b3ac66cf2acc79e9c (diff) | |
download | skyhanni-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/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt | 4 |
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()}" ) ) |