diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-09-23 20:42:52 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 12:42:52 +0200 |
commit | 368523b99992687fbef3acb29f915c0b6ada5fd9 (patch) | |
tree | e09e215f9f3b36991a6b43be2f7216ec03680e95 /src/main/java/at/hannibal2/skyhanni/data | |
parent | ec534660a5bdd623b9e61894b2805c82fd701218 (diff) | |
download | skyhanni-368523b99992687fbef3acb29f915c0b6ada5fd9.tar.gz skyhanni-368523b99992687fbef3acb29f915c0b6ada5fd9.tar.bz2 skyhanni-368523b99992687fbef3acb29f915c0b6ada5fd9.zip |
guh (#495)
internal sidebar changes #495
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt b/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt index 9aee68957..c476482cb 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt @@ -27,6 +27,7 @@ class ScoreboardData { "\uD83C\uDF81", "\uD83C\uDF89", "\uD83C\uDF82", + "\uD83D\uDD2B", ) fun formatLines(rawList: List<String>): List<String> { @@ -49,6 +50,7 @@ class ScoreboardData { var sidebarLines: List<String> = emptyList() // TODO rename to raw var sidebarLinesRaw: List<String> = emptyList() // TODO delete + var objectiveLine = "" } @SubscribeEvent(priority = EventPriority.HIGHEST) @@ -76,6 +78,7 @@ class ScoreboardData { private fun fetchScoreboardLines(): List<String> { val scoreboard = Minecraft.getMinecraft().theWorld?.scoreboard ?: return emptyList() val objective = scoreboard.getObjectiveInDisplaySlot(1) ?: return emptyList() + objectiveLine = objective.displayName var scores = scoreboard.getSortedScores(objective) val list = scores.filter { input: Score? -> input != null && input.playerName != null && !input.playerName.startsWith("#") |