Little enhancement for class select GUI.

This commit is contained in:
Ka0rX 2023-09-05 18:59:28 +01:00
parent 3efc5b86fb
commit 7b45b54793

View File

@ -72,7 +72,7 @@ public class ClassSelect extends EditableInventory {
@Override @Override
public ItemStack display(ProfessSelectionInventory inv, int n) { public ItemStack display(ProfessSelectionInventory inv, int n) {
ItemStack item = playerClass.getIcon(); ItemStack item = n == 0 ? playerClass.getIcon() : super.display(inv, n);
ItemMeta meta = item.getItemMeta(); ItemMeta meta = item.getItemMeta();
if (hideFlags()) if (hideFlags())
meta.addItemFlags(ItemFlag.values()); meta.addItemFlags(ItemFlag.values());