diff options
author | David Cole <40234707+DavidArthurCole@users.noreply.github.com> | 2024-07-17 04:52:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 10:52:59 +0200 |
commit | fb7384530a123d2b6159afb0ca16db658eaa26b5 (patch) | |
tree | eb5dc7eb4c076e44641d10c6575e84691b55f5f1 /src | |
parent | 23af2e0d2131b423837064065b33d75ba555d483 (diff) | |
download | skyhanni-fb7384530a123d2b6159afb0ca16db658eaa26b5.tar.gz skyhanni-fb7384530a123d2b6159afb0ca16db658eaa26b5.tar.bz2 skyhanni-fb7384530a123d2b6159afb0ca16db658eaa26b5.zip |
Fix: Farming ETA Approaches 0 (#2230)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt index 60f665760..ffd778aa3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt @@ -387,7 +387,7 @@ object FarmingWeightDisplay { private fun updateWeightPerSecond(crop: CropType, before: Double, after: Double, diff: Int) { val speed = crop.getSpeed() ?: return val weightDiff = (after - before) * 1000 - weightPerSecond = ((weightDiff / diff) * (speed / 1000)) + weightPerSecond = (((weightDiff / diff) * speed) / 1000) } private fun getExactWeight(): Double { |