From 917170b1ca53b0718f59a0f922e028567e61c998 Mon Sep 17 00:00:00 2001 From: CalMWolfs Date: Tue, 20 Jun 2023 09:21:58 +1000 Subject: maybe fixed error --- .../java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt index ea9583057..264d16ae4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt @@ -42,6 +42,7 @@ class FrozenTreasureTracker { private fun calculateIcePerHour() { val difference = estimatedIce - lastEstimatedIce + lastEstimatedIce = estimatedIce if (difference == 0L) { missedMinutes += 1 if (missedMinutes == 3) { @@ -53,7 +54,7 @@ class FrozenTreasureTracker { } missedMinutes = 0 icePerMin.add(difference) - icePerHour = icePerMin.average().toInt() + if (difference != estimatedIce) icePerHour = icePerMin.average().toInt() } private fun formatDisplay(map: List>): List> { -- cgit