3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

Construct List properly, Fix #314

Dieser Commit ist enthalten in:
Myles 2016-04-03 01:51:38 +01:00
Ursprung de576795dc
Commit 1fa7211cf0

Datei anzeigen

@ -34,7 +34,8 @@ public class ListSubCmd extends ViaSubCommand {
playerVersions.get(playerVersion).add(p.getName()); playerVersions.get(playerVersion).add(p.getName());
continue; continue;
} }
playerVersions.put(playerVersion, Collections.singleton(p.getName())); playerVersions.put(playerVersion, new HashSet<String>()).add(p.getName());
} }
Map<Integer, Set<String>> sorted = new TreeMap<>(playerVersions); Map<Integer, Set<String>> sorted = new TreeMap<>(playerVersions);