aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-03 19:55:19 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-03 19:55:19 +0200
commitf93585fe40a1dd2a1ccb2cbc160497af16006f86 (patch)
tree323788f74e73ecee7c233da71e0694d10be47928 /src
parent46531787bf296e3c25e0062236d17bca80c62cb8 (diff)
downloadskyhanni-f93585fe40a1dd2a1ccb2cbc160497af16006f86.tar.gz
skyhanni-f93585fe40a1dd2a1ccb2cbc160497af16006f86.tar.bz2
skyhanni-f93585fe40a1dd2a1ccb2cbc160497af16006f86.zip
renamed a variable
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt4
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
}