diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-27 08:32:31 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-27 08:32:31 +0200 |
| commit | 9ca1458eaeecebbd349fc6780c3f0d22b43dd05f (patch) | |
| tree | c1e83bed2476f3a51867e0a739b50cd773dd1e50 /src/main/java/at/hannibal2/skyhanni/data | |
| parent | 663abc4b0728cf0200c9493492bbfb946c393b25 (diff) | |
| download | skyhanni-9ca1458eaeecebbd349fc6780c3f0d22b43dd05f.tar.gz skyhanni-9ca1458eaeecebbd349fc6780c3f0d22b43dd05f.tar.bz2 skyhanni-9ca1458eaeecebbd349fc6780c3f0d22b43dd05f.zip | |
added workarounds for profile data not loaded problems
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 4 | ||||
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 638c2e0b8..166282582 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -329,8 +329,6 @@ class HypixelData { } } - if (!event.isMod(5)) return - if (!LorenzUtils.onHypixel) { checkHypixel() if (LorenzUtils.onHypixel) { @@ -340,6 +338,8 @@ class HypixelData { } if (!LorenzUtils.onHypixel) return + if (!event.isMod(5)) return + val inSkyBlock = checkScoreboard() if (inSkyBlock) { checkIsland() diff --git a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt index 08dd89539..c5f072587 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt @@ -39,7 +39,7 @@ object ProfileStorageData { val profileName = event.name if (playerSpecific == null) { DelayedRun.runDelayed(10.seconds) { - workaroundIn10Seconds(profileName) + workaroundIn10SecondsProfileStorage(profileName) } ErrorManager.skyHanniError("playerSpecific is null in ProfileJoinEvent!") } @@ -51,7 +51,8 @@ object ProfileStorageData { ConfigLoadEvent().postAndCatch() } - private fun workaroundIn10Seconds(profileName: String) { + private fun workaroundIn10SecondsProfileStorage(profileName: String) { + println("workaroundIn10SecondsProfileStorage") val playerSpecific = playerSpecific val sackPlayers = sackPlayers |
