From 9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 31 Dec 2020 01:26:26 +0800 Subject: 1.8-PRE1 --- .../java/io/github/moulberry/notenoughupdates/questing/SBInfo.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java b/src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java index 2d594ccf..67cd79a9 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java @@ -84,10 +84,8 @@ public class SBInfo { ScoreObjective sidebarObjective = scoreboard.getObjectiveInDisplaySlot(1); //ยง707/14/20 - List scores = new ArrayList<>(); - for(Score score : scoreboard.getSortedScores(sidebarObjective)) { - scores.add(score); - } + List scores = new ArrayList<>(scoreboard.getSortedScores(sidebarObjective)); + List lines = new ArrayList<>(); for(int i=scores.size()-1; i>=0; i--) { Score score = scores.get(i); -- cgit