Closed ShellWen closed 1 year ago
Pages start at 0.
Apologies, what I didn't mention is that when I press the button, there's no paging happening, nothing occurs, which is very strange. Additionally, as seen in the code I provided, I'm using 999 slots, but there's only one page (perhaps two?). Clearly, this is not normal.
@NichtStudioCode I apologize for bothering you, but this issue was accidentally closed.
No, you only defined one page, so you only have one page. The current implementation is not intended to have slots that cannot be displayed in one page overflow to another page. I guess this could be implemented, but it requires some more in-depth changes in order for it to work properly with resizing of Virtual Inventories. You can just create your own PagedGui
implementation by extending AbstractPagedGui
, though.
The pagination of Inventories PagedGui is not functioning correctly. The result of
"${gui.currentPage} / ${gui.pageAmount}"
is always0 / 1
.Below is a code snippet that reliably reproduces the issue: