aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/ScoreboardUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/ScoreboardUtil.kt')
-rw-r--r--src/main/kotlin/util/ScoreboardUtil.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/util/ScoreboardUtil.kt b/src/main/kotlin/util/ScoreboardUtil.kt
index 0970892..f5f28b9 100644
--- a/src/main/kotlin/util/ScoreboardUtil.kt
+++ b/src/main/kotlin/util/ScoreboardUtil.kt
@@ -22,7 +22,7 @@ object ScoreboardUtil {
}
private fun getScoreboardLinesUncached(): List<Text> {
- val scoreboard = MC.player?.scoreboard ?: return listOf()
+ val scoreboard = MC.instance.world?.scoreboard ?: return listOf()
val activeObjective = scoreboard.getObjectiveForSlot(ScoreboardDisplaySlot.SIDEBAR) ?: return listOf()
return scoreboard.getScoreboardEntries(activeObjective)
.filter { !it.hidden() }