aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-17 13:02:16 +0200
committerGitHub <noreply@github.com>2024-08-17 13:02:16 +0200
commitc5c64718419b933b6c414c4088cf6a2892f36aec (patch)
tree728c10d03a7283854e615fee1976b12de0c00eeb /src
parentf34dff04ef8cb0222e06a23bca624fe68f6cb082 (diff)
downloadskyhanni-c5c64718419b933b6c414c4088cf6a2892f36aec.tar.gz
skyhanni-c5c64718419b933b6c414c4088cf6a2892f36aec.tar.bz2
skyhanni-c5c64718419b933b6c414c4088cf6a2892f36aec.zip
Fix: Fishing Timer (#2365)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: Empa <42304516+itsempa@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
index 012d47f49..5be021fbb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt
@@ -165,9 +165,7 @@ object FishingTimer {
}
private fun updateInfo() {
- currentCount = mobDespawnTime.entries.sumOf {
- 1 + it.key.extraEntities.size
- }
+ currentCount = mobDespawnTime.size
startTime = mobDespawnTime.maxByOrNull { it.value.passedSince() }?.value ?: SimpleTimeMark.farPast()
display = createDisplay()
}