From e2c7746ab27d8abdfef3e93743ed243a68469192 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 24 Jul 2023 21:39:58 +0200 Subject: Fixed jacob contest time shows one second too long --- .../skyhanni/features/garden/contest/JacobContestStatsSummary.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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:") -- cgit