From cbc3e850072a27209fefdd3e0fe0a2f9031885d1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 24 May 2024 20:27:28 +0200 Subject: made the 10s delay actually working --- src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit