diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SubclassSelect.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SubclassSelect.java index 2e3a4edb..7943a6dc 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SubclassSelect.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/gui/SubclassSelect.java @@ -93,7 +93,12 @@ public class SubclassSelect extends EditableInventory { @Override public boolean canDisplay(SubclassSelectionInventory inv) { - return inv.getPlayerData().getProfess().hasSubclass(playerClass); + return inv.getPlayerData() + .getProfess() + .getSubclasses() + .stream() + .anyMatch(subclass -> subclass.getLevel() <= inv.getPlayerData().getLevel() + && subclass.getProfess().getId().equals(playerClass.getId())); } }