summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/gui
diff options
context:
space:
mode:
authorLuna <me@alexia.lol>2024-04-12 14:13:31 +0200
committerGitHub <noreply@github.com>2024-04-12 14:13:31 +0200
commit388819e61cf1229ef4a5d6ddeca1bd1dafd05e71 (patch)
treed23327bb36d749fa090a4666c2502335b9e2e800 /src/main/java/at/hannibal2/skyhanni/features/gui
parent2038424a4ade6f5b85942d7eeb9d0ace485e6d46 (diff)
downloadskyhanni-388819e61cf1229ef4a5d6ddeca1bd1dafd05e71.tar.gz
skyhanni-388819e61cf1229ef4a5d6ddeca1bd1dafd05e71.tar.bz2
skyhanni-388819e61cf1229ef4a5d6ddeca1bd1dafd05e71.zip
Fix: Clear SkyBlock area on world change (#1421)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt
index 2bf173ab9..6de6ea4f0 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt
@@ -483,7 +483,7 @@ private fun getIslandDisplayPair() =
listOf("§7㋖ §a" + HypixelData.skyBlockIsland.displayName to HorizontalAlignment.LEFT)
private fun getLocationDisplayPair() = buildList {
- add(HypixelData.skyBlockAreaWithSymbol to HorizontalAlignment.LEFT)
+ HypixelData.skyBlockAreaWithSymbol?.let { add(it to HorizontalAlignment.LEFT) }
ScoreboardData.sidebarLinesFormatted.firstOrNull { ScoreboardPattern.plotPattern.matches(it) }
?.let { add(it to HorizontalAlignment.LEFT) }