even more default capacities

This commit is contained in:
Ceikry
2021-03-12 21:23:46 -06:00
parent 78a9b8c88e
commit 19e20d9dc9
109 changed files with 144 additions and 144 deletions
@@ -38,7 +38,7 @@ public final class CommunicationInfo {
/**
* The list of blocked players.
*/
private final List<String> blocked = new ArrayList<>();
private final List<String> blocked = new ArrayList<>(20);
/**
* The player's clan name.
@@ -105,7 +105,7 @@ public final class CommunicationInfo {
if (privateChatSetting != 2) {
for (GameServer server : WorldDatabase.getWorlds()) {
if (server != null && server.isActive()) {
List<String> names = new ArrayList<>();
List<String> names = new ArrayList<>(20);
for (PlayerSession p : server.getPlayers().values()) {
if (p.isActive() && p.getCommunication().contacts.containsKey(player.getUsername())) {
if (privateChatSetting == 0 || contacts.containsKey(p.getUsername())) {