Fixed error message when the class doesn't have any skills.

This commit is contained in:
Ka0rX 2023-04-02 20:02:56 +01:00
parent 8ce90c3363
commit c64b88e36d

View File

@ -329,6 +329,7 @@ public class SkillList extends EditableInventory {
skillSlots = getEditable().getByFunction("skill").getSlots();
Validate.notNull(getEditable().getByFunction("slot"), "Your skill GUI config file is out-of-date, please regenerate it.");
slotSlots = getEditable().getByFunction("slot").getSlots();
if (skills.size() > page * skillSlots.size())
selected = skills.get(page * skillSlots.size());
}