From 0c6c929c65af4e4368c3500f9d497af56f398352 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 31 May 2024 16:38:06 +1000 Subject: Fix: Make long (#1959) --- .../features/inventory/chocolatefactory/ChocolateShopPrice.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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() 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() } } -- cgit