From 05144bd6ce9d640ed628a5dcafcdaa0d55ba9128 Mon Sep 17 00:00:00 2001 From: HiZe_ Date: Sat, 28 Oct 2023 00:23:46 +0200 Subject: huge change to fix NumberFormatException in trophy sack (#636) Fixed bug with trophy sack display reading number. #636 --- src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 { -- cgit