diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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<Any>>): List<List<Any>> { |