diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-07 22:27:55 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-07 22:27:55 +0100 |
commit | e0ef36326d439cfb376a44d005d3b8c7299c634b (patch) | |
tree | 13701219c34c0b698a1f10d33b751faaee05d052 /src | |
parent | 4c4a0f2dbd15dfc4afa92e3a4c5ca90c0465976f (diff) | |
download | skyhanni-e0ef36326d439cfb376a44d005d3b8c7299c634b.tar.gz skyhanni-e0ef36326d439cfb376a44d005d3b8c7299c634b.tar.bz2 skyhanni-e0ef36326d439cfb376a44d005d3b8c7299c634b.zip |
code cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt | 6 |
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 { |