aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-24 21:39:58 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-24 21:39:58 +0200
commite2c7746ab27d8abdfef3e93743ed243a68469192 (patch)
tree802c156d099609c585669682878b70ff615d4156 /src/main/java
parent07bb3f5e91428822939805101306e17a16ce902c (diff)
downloadskyhanni-e2c7746ab27d8abdfef3e93743ed243a68469192.tar.gz
skyhanni-e2c7746ab27d8abdfef3e93743ed243a68469192.tar.bz2
skyhanni-e2c7746ab27d8abdfef3e93743ed243a68469192.zip
Fixed jacob contest time shows one second too long
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestStatsSummary.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestStatsSummary.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestStatsSummary.kt
index 28bc69742..1a7cbcbda 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestStatsSummary.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestStatsSummary.kt
@@ -39,7 +39,7 @@ class JacobContestStatsSummary {
}
FarmingContestPhase.STOP -> {
val duration = System.currentTimeMillis() - startTime
- val durationInSeconds = duration / 1000
+ val durationInSeconds = duration.toDouble() / 1000
val blocksPerSecond = (blocksBroken.toDouble() / durationInSeconds).round(2)
val cropName = event.crop.cropName
LorenzUtils.chat("§e[SkyHanni] Stats for $cropName Contest:")