From b90d16f0a377a900877f4eebba7fe0c371f92fc6 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Mon, 16 Oct 2023 21:55:52 +1100 Subject: fix timer (#577) Fixed limbo detection breaks when leaving too quickly. #577 --- .../java/at/hannibal2/skyhanni/features/misc/LimboTimeTracker.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/LimboTimeTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/LimboTimeTracker.kt index 3fc6e734b..4aed71557 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/LimboTimeTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/LimboTimeTracker.kt @@ -9,7 +9,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.TimeUtils.format import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import kotlin.time.Duration.Companion.seconds class LimboTimeTracker { private val config get() = SkyHanniMod.feature.misc @@ -28,11 +27,7 @@ class LimboTimeTracker { @SubscribeEvent fun onWorldChange(event: LorenzWorldChangeEvent) { if (!inLimbo) return - - val passedSince = limboJoinTime.passedSince() - if (passedSince > 5.seconds) { - leaveLimbo() - } + leaveLimbo() } @SubscribeEvent -- cgit