From 452f67a87dc4e50f0e5f532726fcd69ceca24eae Mon Sep 17 00:00:00 2001 From: alexia Date: Thu, 14 Dec 2023 01:05:57 +0100 Subject: Fix kick alert triggering instantly (#798) Fixed kick alert triggering instantly. #798 --- .../at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt index 7ca34eafb..72c1009e9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt @@ -29,7 +29,7 @@ class SkyBlockKickDuration { if (LorenzUtils.onHypixel && !LorenzUtils.inSkyBlock) { kickMessage = false showTime = true - lastKickTime = SimpleTimeMark.farPast() + lastKickTime = SimpleTimeMark.now() } else { kickMessage = true } @@ -38,7 +38,7 @@ class SkyBlockKickDuration { if (event.message == "§cThere was a problem joining SkyBlock, try again in a moment!") { kickMessage = false showTime = true - lastKickTime = SimpleTimeMark.farPast() + lastKickTime = SimpleTimeMark.now() } } @@ -48,7 +48,7 @@ class SkyBlockKickDuration { if (kickMessage) { kickMessage = false showTime = true - lastKickTime = SimpleTimeMark.farPast() + lastKickTime = SimpleTimeMark.now() } hasWarned = false } -- cgit