mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-06-21 09:47:44 +02:00
Fix theoretical IOOBE race (#1799)
This commit is contained in:
@@ -66,7 +66,7 @@ public class ServerListPingHandler {
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
Collections.shuffle(unshuffledPlayers);
|
||||
samplePlayers = unshuffledPlayers.subList(0, Math.min(12, server.getPlayerCount()));
|
||||
samplePlayers = unshuffledPlayers.subList(0, Math.min(12, unshuffledPlayers.size()));
|
||||
} else {
|
||||
samplePlayers = ImmutableList.of();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user