diff options
author | HiZe_ <superhize@hotmail.com> | 2023-10-28 00:23:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 00:23:46 +0200 |
commit | 05144bd6ce9d640ed628a5dcafcdaa0d55ba9128 (patch) | |
tree | 605a5e3c9d1149c6bc3233c5ff5fede4e1282506 /src | |
parent | 26e34bc9a93760da738dfcb8aecba3c5d3357199 (diff) | |
download | skyhanni-05144bd6ce9d640ed628a5dcafcdaa0d55ba9128.tar.gz skyhanni-05144bd6ce9d640ed628a5dcafcdaa0d55ba9128.tar.bz2 skyhanni-05144bd6ce9d640ed628a5dcafcdaa0d55ba9128.zip |
huge change to fix NumberFormatException in trophy sack (#636)
Fixed bug with trophy sack display reading number. #636
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt index e01f4658b..59d250b0a 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt @@ -164,7 +164,7 @@ object SackAPI { val trophyRarityName = internal.substringAfterLast("_") val info = TrophyFishManager.getInfo(trophyFishName) val rarity = TrophyRarity.getByName(trophyRarityName) ?: TrophyRarity.BRONZE - val filletValue = (info?.getFilletValue(rarity) ?: 0) * stored.toLong() + val filletValue = (info?.getFilletValue(rarity) ?: 0) * stored.formatNumber() item.magmaFish = filletValue "MAGMA_FISH".asInternalName().sackPrice(filletValue.toString()) } else { |