Merge pull request 'Fix Leaderboard IndexOutOfBoundsException' (#33) from leaderboard_ioobe into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #33 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
dadf78f126
@ -37,6 +37,7 @@ public class Leaderboard {
|
||||
entities.forEach(REntity::die);
|
||||
entities.clear();
|
||||
List<LeaderboardEntry> leaderboard = getLeaderboard();
|
||||
if (leaderboard.isEmpty()) return;
|
||||
long bestTime = leaderboard.get(0).time;
|
||||
for (int i = 0; i <= best; i++) {
|
||||
if (best - i >= leaderboard.size()) continue;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren