diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/GUIContainerInspect.java b/src/main/java/ca/tweetzy/auctionhouse/guis/GUIContainerInspect.java index 133d3ab..e6eaef6 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/GUIContainerInspect.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/GUIContainerInspect.java @@ -105,7 +105,7 @@ public class GUIContainerInspect extends AbstractPlaceholderGui { private void draw() { reset(); - pages = (int) Math.max(1, Math.ceil(this.items.size() / (double) 27L)); + pages = (int) Math.max(1, Math.ceil(this.items.size() / (double) 36L)); for (int i : fillSlots) setItem(i, getDefaultItem()); @@ -121,8 +121,8 @@ public class GUIContainerInspect extends AbstractPlaceholderGui { setNextPage(5, 5, getNextPageItem()); setOnPage(e -> draw()); - int slot = 9; - List data = this.items.stream().skip((page - 1) * 27L).limit(27L).collect(Collectors.toList()); + int slot = 0; + List data = this.items.stream().skip((page - 1) * 36L).limit(36L).collect(Collectors.toList()); for (ItemStack item : data) { setItem(slot++, item); }