From fb7384530a123d2b6159afb0ca16db658eaa26b5 Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Wed, 17 Jul 2024 04:52:59 -0400 Subject: [PATCH] Fix: Farming ETA Approaches 0 (#2230) --- .../skyhanni/features/garden/farming/FarmingWeightDisplay.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 60f665760045..ffd778aa36bc 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 {