diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-23 12:43:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-23 12:43:25 +0200 |
commit | e4f5cf5565b7742555b1bd4c72616d5ee99af826 (patch) | |
tree | 43abb9c1a681250f2f0a59e3e36e5be52e508545 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 368523b99992687fbef3acb29f915c0b6ada5fd9 (diff) | |
download | skyhanni-e4f5cf5565b7742555b1bd4c72616d5ee99af826.tar.gz skyhanni-e4f5cf5565b7742555b1bd4c72616d5ee99af826.tar.bz2 skyhanni-e4f5cf5565b7742555b1bd4c72616d5ee99af826.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt b/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt index c476482cb..62c0a5503 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ScoreboardData.kt @@ -50,7 +50,7 @@ class ScoreboardData { var sidebarLines: List<String> = emptyList() // TODO rename to raw var sidebarLinesRaw: List<String> = emptyList() // TODO delete - var objectiveLine = "" + var objectiveTitle = "" } @SubscribeEvent(priority = EventPriority.HIGHEST) @@ -78,7 +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 + objectiveTitle = objective.displayName var scores = scoreboard.getSortedScores(objective) val list = scores.filter { input: Score? -> input != null && input.playerName != null && !input.playerName.startsWith("#") |