Skip to content

Commit

Permalink
highscores actually high
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimateHikari committed Nov 4, 2021
1 parent 2bb73ab commit a3b6966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/hikari/snakeclient/tui/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private void drawScores(TextGraphics tg, List<Player> players) {
tg.putString(pos, "Highscores");
TuiUtils.clearRectangleByBorder(tg, pos, grid.getScoreSize(size));
Player[] sPlayers = players.stream()
.sorted(Comparator.comparing(Player::getScore))
.sorted(Comparator.comparing(Player::getScore).reversed())
.toArray(Player[]::new);
for (int i = 0; i < sPlayers.length; i++) {
tg.setForegroundColor(brush.getColor(sPlayers[i]));
Expand Down

0 comments on commit a3b6966

Please sign in to comment.