aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-07-17 04:52:59 -0400
committerGitHub <noreply@github.com>2024-07-17 10:52:59 +0200
commitfb7384530a123d2b6159afb0ca16db658eaa26b5 (patch)
treeeb5dc7eb4c076e44641d10c6575e84691b55f5f1 /src/main/java
parent23af2e0d2131b423837064065b33d75ba555d483 (diff)
downloadskyhanni-fb7384530a123d2b6159afb0ca16db658eaa26b5.tar.gz
skyhanni-fb7384530a123d2b6159afb0ca16db658eaa26b5.tar.bz2
skyhanni-fb7384530a123d2b6159afb0ca16db658eaa26b5.zip
Fix: Farming ETA Approaches 0 (#2230)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt2
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 {