From aa9bbeaf75c571b88f02874f480da04f8424d78d Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:08:46 +0200 Subject: Improvement: Use SkyblockArea.skyblockAreaWithSymbol for Custom Scoreboard Area (#1350) --- .../skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui') 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 d3e3b6c1c..65d8d880c 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 @@ -482,13 +482,8 @@ private fun getEmptyLineDisplayPair() = listOf("" to HorizontalAlignment. private fun getIslandDisplayPair() = listOf("§7㋖ §a" + HypixelData.skyBlockIsland.displayName to HorizontalAlignment.LEFT) -// TODO merge with LorenzUtils.skyBlockArea private fun getLocationDisplayPair() = buildList { - val location = - getGroupFromPattern(ScoreboardData.sidebarLinesFormatted, ScoreboardPattern.locationPattern, "location").trim() - if (location == "0") return@buildList - - add(location to HorizontalAlignment.LEFT) + add(HypixelData.skyBlockAreaWithSymbol to HorizontalAlignment.LEFT) ScoreboardData.sidebarLinesFormatted.firstOrNull { ScoreboardPattern.plotPattern.matches(it) } ?.let { add(it to HorizontalAlignment.LEFT) } -- cgit