aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralexia <me@alexia.lol>2023-12-14 01:05:57 +0100
committerGitHub <noreply@github.com>2023-12-14 01:05:57 +0100
commit452f67a87dc4e50f0e5f532726fcd69ceca24eae (patch)
treeccdd4a3b75214c04683df5c155aadfa34007b622 /src
parent62e6776252ef991bd1387d7b9d1c4a417f4bbb2f (diff)
downloadskyhanni-452f67a87dc4e50f0e5f532726fcd69ceca24eae.tar.gz
skyhanni-452f67a87dc4e50f0e5f532726fcd69ceca24eae.tar.bz2
skyhanni-452f67a87dc4e50f0e5f532726fcd69ceca24eae.zip
Fix kick alert triggering instantly (#798)
Fixed kick alert triggering instantly. #798
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt6
1 files changed, 3 insertions, 3 deletions
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
}