aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-10-16 21:55:52 +1100
committerGitHub <noreply@github.com>2023-10-16 12:55:52 +0200
commitb90d16f0a377a900877f4eebba7fe0c371f92fc6 (patch)
tree9a7bcafe1953338de201338d36dc89f454051424 /src/main/java/at
parentf62eda7516fc377b83e467746dff084701cda679 (diff)
downloadskyhanni-b90d16f0a377a900877f4eebba7fe0c371f92fc6.tar.gz
skyhanni-b90d16f0a377a900877f4eebba7fe0c371f92fc6.tar.bz2
skyhanni-b90d16f0a377a900877f4eebba7fe0c371f92fc6.zip
fix timer (#577)
Fixed limbo detection breaks when leaving too quickly. #577
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/LimboTimeTracker.kt7
1 files changed, 1 insertions, 6 deletions
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