diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-24 02:40:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 02:40:56 +0200 |
commit | 752e94358bea9b95faed5fb77e0bf5f55f90f609 (patch) | |
tree | a2f8c616b395048584697a610ac056973e889148 /src | |
parent | 890d17ba68b2d1e0287d3c6b19c45ef6d6a131d6 (diff) | |
download | skyhanni-752e94358bea9b95faed5fb77e0bf5f55f90f609.tar.gz skyhanni-752e94358bea9b95faed5fb77e0bf5f55f90f609.tar.bz2 skyhanni-752e94358bea9b95faed5fb77e0bf5f55f90f609.zip |
Fix: Profile not loaded correctly (#1872)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 55ab2dd35..024733446 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -283,6 +283,7 @@ class HypixelData { } @SubscribeEvent + // TODO rewrite everything in here fun onTick(event: LorenzTickEvent) { if (!LorenzUtils.inSkyBlock) { // Modified from NEU. @@ -302,17 +303,19 @@ class HypixelData { } } - if (LorenzUtils.inSkyBlock) { - loop@ for (line in ScoreboardData.sidebarLinesFormatted) { - skyblockAreaPattern.matchMatcher(line) { - val originalLocation = group("area") - skyBlockArea = LocationFixData.fixLocation(skyBlockIsland) ?: originalLocation - skyBlockAreaWithSymbol = line.trim() - break@loop + if (LorenzUtils.onHypixel) { + if (LorenzUtils.inSkyBlock) { + loop@ for (line in ScoreboardData.sidebarLinesFormatted) { + skyblockAreaPattern.matchMatcher(line) { + val originalLocation = group("area") + skyBlockArea = LocationFixData.fixLocation(skyBlockIsland) ?: originalLocation + skyBlockAreaWithSymbol = line.trim() + break@loop + } } - } - checkProfileName() + checkProfileName() + } } if (!event.isMod(5)) return |