aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-05-31 16:38:06 +1000
committerGitHub <noreply@github.com>2024-05-31 16:38:06 +1000
commit0c6c929c65af4e4368c3500f9d497af56f398352 (patch)
tree4a56ef8c848f8dd8ca619e8836956716d0874ac2 /src/main
parent8c1d36bb5849856f67baa9a4bb0a8be6e79f42d7 (diff)
downloadskyhanni-0c6c929c65af4e4368c3500f9d497af56f398352.tar.gz
skyhanni-0c6c929c65af4e4368c3500f9d497af56f398352.tar.bz2
skyhanni-0c6c929c65af4e4368c3500f9d497af56f398352.zip
Fix: Make long (#1959)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt
index 1d977d22d..13e260b81 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt
@@ -16,7 +16,7 @@ import at.hannibal2.skyhanni.utils.NEUItems.getPrice
import at.hannibal2.skyhanni.utils.NEUItems.getPriceOrNull
import at.hannibal2.skyhanni.utils.NumberUtil
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
-import at.hannibal2.skyhanni.utils.NumberUtil.formatInt
+import at.hannibal2.skyhanni.utils.NumberUtil.formatLong
import at.hannibal2.skyhanni.utils.NumberUtil.million
import at.hannibal2.skyhanni.utils.RegexUtils.groupOrNull
import at.hannibal2.skyhanni.utils.RegexUtils.matchFirst
@@ -56,7 +56,7 @@ object ChocolateShopPrice {
var inventoryItems = emptyMap<Int, ItemStack>()
private const val MILESTONE_INDEX = 50
- private var chocolateSpent = 0
+ private var chocolateSpent = 0L
@SubscribeEvent
fun onSecondPassed(event: SecondPassedEvent) {
@@ -91,7 +91,7 @@ object ChocolateShopPrice {
if (slot == MILESTONE_INDEX) {
lore.matchFirst(chocolateSpentPattern) {
- chocolateSpent = group("amount").formatInt()
+ chocolateSpent = group("amount").formatLong()
}
}