📦 bundle inspect is 36 slots now, Closes #44

Took 58 seconds
This commit is contained in:
Kiran Hart 2023-03-21 16:15:08 -04:00
parent 6c83e0b312
commit e089ba3445
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -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<ItemStack> data = this.items.stream().skip((page - 1) * 27L).limit(27L).collect(Collectors.toList());
int slot = 0;
List<ItemStack> data = this.items.stream().skip((page - 1) * 36L).limit(36L).collect(Collectors.toList());
for (ItemStack item : data) {
setItem(slot++, item);
}