Skip to content

Commit

Permalink
hotfix for plugman reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
linsaftw committed Oct 13, 2021
1 parent 6648d89 commit 6c2f859
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public void clearLines(final Player player) {

public void setLines(final Player player, final List<String> lines) {
if (lines != null) {
Collections.reverse(lines);
scoreboardLines.put(player, lines);
final List<String> linesCopy = new ArrayList<String>(lines);

Collections.reverse(linesCopy);
scoreboardLines.put(player, linesCopy);
} else {
scoreboardLines.remove(player);
}
Expand Down

0 comments on commit 6c2f859

Please sign in to comment.