aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-04-26 01:43:13 +0200
committerGitHub <noreply@github.com>2024-04-26 09:43:13 +1000
commit9881e5a9c876c6b0b85cd1a7b295151467ad4470 (patch)
tree8e049876099b803c4def534f1e0daf3987e02964 /src/main
parentc388ed72e5414411f9b1b3afe6aae4b3b72b8b4e (diff)
downloadskyhanni-9881e5a9c876c6b0b85cd1a7b295151467ad4470.tar.gz
skyhanni-9881e5a9c876c6b0b85cd1a7b295151467ad4470.tar.bz2
skyhanni-9881e5a9c876c6b0b85cd1a7b295151467ad4470.zip
Fix: Profit Trackers int limit (#1554)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
index 5e15a3a89..57595c1c1 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
@@ -178,7 +178,7 @@ class SkyHanniItemTracker<Data : ItemTrackerData>(
}
fun addTotalProfit(profit: Double, totalAmount: Long, action: String): Renderable {
- val profitFormat = profit.toInt().addSeparators()
+ val profitFormat = profit.toLong().addSeparators()
val profitPrefix = if (profit < 0) "§c" else "§6"
val tips = if (totalAmount > 0) {