From eff6a08e316eeb921a10a280c15b6cebbccaf7ec Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:39:33 +0200 Subject: code cleanup --- .../skyhanni/features/garden/contest/JacobContestStatsSummary.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at') 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 43953feee..50a46b1e2 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 @@ -35,6 +35,7 @@ class JacobContestStatsSummary { LorenzUtils.chat("§e[SkyHanni] Started tracking your Jacob Contest Blocks Per Second!") startTime = System.currentTimeMillis() } + FarmingContestPhase.STOP -> { val duration = System.currentTimeMillis() - startTime val durationInSeconds = duration.toDouble() / 1000 @@ -47,6 +48,7 @@ class JacobContestStatsSummary { LorenzUtils.chat("§e[SkyHanni] §7Average Blocks Per Second: $color$blocksPerSecond") LorenzUtils.chat("§e[SkyHanni] §7Participated for §b$time") } + FarmingContestPhase.CHANGE -> { LorenzUtils.chat("§e[SkyHanni] You changed the crop during the contest, resetting the Blocks Per Second calculation..") startTime = System.currentTimeMillis() -- cgit