Fixed OutOfBounds error from GUI.

This commit is contained in:
BadBones69 2020-04-21 01:47:43 -04:00
parent 22d3cd0a6c
commit 43abfb72fe

View File

@ -644,8 +644,8 @@ public class GUI implements Listener {
}
}
if (List.containsKey(player)) {
if (List.get(player).size() >= slot) {
int id = List.get(player).get(slot);
if (List.get(player).size() > slot) {
int id = List.get(player).get(slot - 1);
boolean T = false;
if (data.contains("Items")) {
for (String i : data.getConfigurationSection("Items").getKeys(false)) {