This commit is contained in:
Indyuce 2020-09-27 00:15:03 +02:00
parent 844a7ca675
commit 47e145d384

View File

@ -97,7 +97,8 @@ public class ClassSelect extends EditableInventory {
} }
public class ProfessSelectionInventory extends GeneratedInventory { public class ProfessSelectionInventory extends GeneratedInventory {
private final List<PlayerClass> classes = MMOCore.plugin.classManager.getAll().stream().filter(c -> c.hasOption(ClassOption.DISPLAY)).sorted(Comparator.comparingInt(PlayerClass::getDisplayOrder)).collect(Collectors.toList()); private final List<PlayerClass> classes = MMOCore.plugin.classManager.getAll().stream().filter(c -> c.hasOption(ClassOption.DISPLAY))
.sorted(Comparator.comparingInt(PlayerClass::getDisplayOrder)).collect(Collectors.toList());
public ProfessSelectionInventory(PlayerData playerData, EditableInventory editable) { public ProfessSelectionInventory(PlayerData playerData, EditableInventory editable) {
super(playerData, editable); super(playerData, editable);