From dce85b0fe4c6bd95de6e8f718c6d6b4d48d8dbe0 Mon Sep 17 00:00:00 2001 From: BadBones69 Date: Wed, 22 Apr 2020 03:33:31 -0400 Subject: [PATCH] Revert 43abfb72fe5bd9028614f5c249287325319023c2 --- .../java/me/badbones69/crazyauctions/controllers/GUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/badbones69/crazyauctions/controllers/GUI.java b/src/main/java/me/badbones69/crazyauctions/controllers/GUI.java index 1e25dcf..58172a9 100644 --- a/src/main/java/me/badbones69/crazyauctions/controllers/GUI.java +++ b/src/main/java/me/badbones69/crazyauctions/controllers/GUI.java @@ -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 - 1); + if (List.get(player).size() >= slot) { + int id = List.get(player).get(slot); boolean T = false; if (data.contains("Items")) { for (String i : data.getConfigurationSection("Items").getKeys(false)) {