Fixed compile errors

This commit is contained in:
Jules 2022-08-13 22:01:05 +02:00
parent bfb33cd7a7
commit 824467cb3d

View File

@ -63,8 +63,6 @@ public class SkillList extends EditableInventory {
};
}
if (function.equals("slot"))
return new InventoryItem<SkillViewerInventory>(config) {
private final String none = MythicLib.plugin.parseColors(config.getString("no-skill"));
@ -376,7 +374,7 @@ public class SkillList extends EditableInventory {
if (item.getFunction().equals("slot")) {
int index = slotSlots.indexOf(context.getSlot());
KEy // unbind if there is a current spell.
// unbind if there is a current spell.
if (context.getClickType() == ClickType.RIGHT) {
if (!playerData.hasSkillBound(index)) {
MMOCore.plugin.configManager.getSimpleMessage("no-skill-bound").send(player);
@ -456,10 +454,5 @@ KEy // unbind if there is a current spell.
open();
}
}
}
private int mod(int x, int n) {
return x < 0 ? (x + n) : (x % n);
}
}