set page to 1, if less than 0

This commit is contained in:
Ryder Belserion 2024-10-31 12:07:08 -04:00
parent 0cf673b630
commit 34309a50a9
No known key found for this signature in database

View File

@ -80,7 +80,9 @@ public abstract class Holder implements InventoryHolder, Listener {
return this.size - 9;
}
public void setPage(final int page) {
public void setPage(int page) {
if (page <= 0) page = 1;
this.page = page;
}