diff --git a/src/main/java/com/songoda/ultimatekits/gui/GUIKitSelector.java b/src/main/java/com/songoda/ultimatekits/gui/GUIKitSelector.java index 783a977..a1cc2e1 100644 --- a/src/main/java/com/songoda/ultimatekits/gui/GUIKitSelector.java +++ b/src/main/java/com/songoda/ultimatekits/gui/GUIKitSelector.java @@ -131,8 +131,8 @@ public class GUIKitSelector extends AbstractGUI { tmax = tmax - 10; for (int index = num; index != tmax; index++) { if (!glassless) { - if (num == 17 || num == (max - 18)) num++; - if (num == 18 && max == 36) num++; + if (index == 17 || index == (max - 18)) index++; + if (index == 18 && max == 36) index++; } if (id > kitList.size() - 1) { inventory.setItem(index, new ItemStack(Material.AIR));