mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 11:41:28 +01:00
Fixed overflow in kit selector.
This commit is contained in:
parent
b6f79ff031
commit
7f68e7a57c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user