diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-24 21:39:58 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-24 21:39:58 +0200 |
commit | e2c7746ab27d8abdfef3e93743ed243a68469192 (patch) | |
tree | 802c156d099609c585669682878b70ff615d4156 /src/main/java | |
parent | 07bb3f5e91428822939805101306e17a16ce902c (diff) | |
download | skyhanni-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.kt | 2 |
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:") |