aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2020-12-31 01:26:26 +0800
committerBuildTools <james.jenour@protonmail.com>2020-12-31 01:26:26 +0800
commit9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46 (patch)
treeb5d9120c9211ec989c05f0fb7d02d6497e49f8d0 /src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java
parent38bfc81ad013925463cd382bf99807d15b4fc53e (diff)
downloadnotenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.tar.gz
notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.tar.bz2
notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.zip
1.8-PRE1
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/questing/SBInfo.java6
1 files changed, 2 insertions, 4 deletions
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<Score> scores = new ArrayList<>();
- for(Score score : scoreboard.getSortedScores(sidebarObjective)) {
- scores.add(score);
- }
+ List<Score> scores = new ArrayList<>(scoreboard.getSortedScores(sidebarObjective));
+
List<String> lines = new ArrayList<>();
for(int i=scores.size()-1; i>=0; i--) {
Score score = scores.get(i);