aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt
index d44dcf359..5e0cedacc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropSpeed.kt
@@ -98,8 +98,10 @@ object GardenCropSpeed {
this.add(blocksBroken)
}
}
- averageBlocksPerSecond = if (blocksSpeedList.size > 1) {
- blocksSpeedList.dropLast(1).average()
+ averageBlocksPerSecond = if (blocksSpeedList.size > 5) {
+ blocksSpeedList.drop(3).average()
+ } else if (blocksSpeedList.size > 1) {
+ blocksSpeedList.drop(1).average()
} else 0.0
GardenAPI.getCurrentlyFarmedCrop()?.let {
val heldTool = InventoryUtils.getItemInHand()