diff --git a/src/main/java/dev/tylerm/khs/gui/SkillSelectionGUI.java b/src/main/java/dev/tylerm/khs/gui/SkillSelectionGUI.java index 6abe8af..20871c1 100644 --- a/src/main/java/dev/tylerm/khs/gui/SkillSelectionGUI.java +++ b/src/main/java/dev/tylerm/khs/gui/SkillSelectionGUI.java @@ -56,7 +56,7 @@ void onClick(InventoryClickEvent event) { return; } event.setCancelled(true); - if(event.getRawSlot() > gui.skills.size())return; + if(event.getRawSlot() < 0 || event.getRawSlot() > gui.skills.size())return; var skill = gui.skills.get(event.getRawSlot()); if (skill == null) { return;