Fixed overflow in kit selector.

This commit is contained in:
Brianna 2019-05-03 18:52:51 -04:00
parent b6f79ff031
commit 7f68e7a57c

View File

@ -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));