mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
set page to 1, if less than 0
This commit is contained in:
parent
0cf673b630
commit
34309a50a9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user