aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-24 20:27:28 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-24 20:27:28 +0200
commitcbc3e850072a27209fefdd3e0fe0a2f9031885d1 (patch)
tree9adf1cf44732c363f383855a89eb670d4cf44414 /src/main/java
parentfce44baa18bc50515f568c89754161770022d1b4 (diff)
downloadskyhanni-cbc3e850072a27209fefdd3e0fe0a2f9031885d1.tar.gz
skyhanni-cbc3e850072a27209fefdd3e0fe0a2f9031885d1.tar.bz2
skyhanni-cbc3e850072a27209fefdd3e0fe0a2f9031885d1.zip
made the 10s delay actually working
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt
index 5cc007370..3c9c6e6cd 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt
@@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.ProfileJoinEvent
import at.hannibal2.skyhanni.events.TabListUpdateEvent
import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ChatUtils
+import at.hannibal2.skyhanni.utils.DelayedRun
import at.hannibal2.skyhanni.utils.HypixelCommands
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.SimpleTimeMark
@@ -37,7 +38,9 @@ object ProfileStorageData {
val sackPlayers = sackPlayers
val profileName = event.name
if (playerSpecific == null) {
- workaroundIn10Seconds(profileName)
+ DelayedRun.runDelayed(10.seconds) {
+ workaroundIn10Seconds(profileName)
+ }
ErrorManager.skyHanniError("playerSpecific is null in ProfileJoinEvent!")
}
if (sackPlayers == null) {