diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt index 2528cf1dd..84ae1048c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt @@ -112,9 +112,9 @@ class JacobContestFFNeededDisplay { private fun calculateAverages(crop: CropType): Pair<Int, Map<ContestRank, Int>> { var amount = 0 val map = mutableMapOf<ContestRank, Int>() - for (entry in FarmingContestAPI.getContestsOfType(crop).associateWith { it.time }.sortedDesc().keys) { + for (contest in FarmingContestAPI.getContestsOfType(crop).associateWith { it.time }.sortedDesc().keys) { amount++ - for ((rank, count) in entry.ranks) { + for ((rank, count) in contest.ranks) { val old = map.getOrDefault(rank, 0) map[rank] = count + old } |