Skip to content

Commit 067a95a

Browse files
authored
Fix: Allow prices over int limit in hunting box value (#4645)
1 parent 99408ac commit 067a95a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/at/hannibal2/skyhanni/features/inventory/attribute/HuntingBoxValue.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ object HuntingBoxValue {
5757
}
5858

5959
addString("§7Total Attribute Shards: §a$totalShards")
60-
addString("§7Total Instant Sell Value: §6${totalInstantSell.toInt().addSeparators()}")
61-
addString("§7Total Instant Buy Value: §6${totalInstantBuy.toInt().addSeparators()}")
60+
addString("§7Total Instant Sell Value: §6${totalInstantSell.toLong().addSeparators()}")
61+
addString("§7Total Instant Buy Value: §6${totalInstantBuy.toLong().addSeparators()}")
6262
}
6363
}
6464

@@ -93,14 +93,14 @@ object HuntingBoxValue {
9393
add("§7Price per Instant Buy: §6${pricePerInstantBuy.toInt().addSeparators()}")
9494
add("")
9595
add("§7Amount Owned: §a$amountOwned")
96-
add("§7Total Price Instant Sell: §6${totalPriceInstantSell.toInt().addSeparators()}")
97-
add("§7Total Price Instant Buy: §6${totalPriceInstantBuy.toInt().addSeparators()}")
96+
add("§7Total Price Instant Sell: §6${totalPriceInstantSell.toLong().addSeparators()}")
97+
add("§7Total Price Instant Buy: §6${totalPriceInstantBuy.toLong().addSeparators()}")
9898
}
9999

100100
table.add(
101101
DisplayTableEntry(
102102
"${internalName.repoItemName} §8x$amountOwned",
103-
"§6${totalPriceInstantSell.toInt().addSeparators()}",
103+
"§6${totalPriceInstantSell.toLong().addSeparators()}",
104104
totalPriceInstantSell,
105105
internalName,
106106
hover,

0 commit comments

Comments
 (0)