aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt
index 2f1999ea2..35f10ac26 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt
@@ -299,14 +299,12 @@ object PowderTracker {
private fun calculate(info: ResourceInfo, reward: PowderChestReward) {
val display = tracker.currentDisplay() ?: return
val rewards = display.rewards
- info.estimated = 0
- info.estimated += rewards.getOrDefault(reward, 0)
+ info.estimated = rewards.getOrDefault(reward, 0)
}
private fun calculateChest() {
val display = tracker.currentDisplay() ?: return
- chestInfo.estimated = 0
- chestInfo.estimated += display.totalChestPicked
+ chestInfo.estimated = display.totalChestPicked.toLong()
}
private fun convert(roughCount: Long): Gem {