mirror of
https://github.com/Shiewk/SModeration.git
synced 2026-04-28 05:54:16 +02:00
Fix pagination in SMod menu
This commit is contained in:
@@ -312,6 +312,9 @@ public class SModMenu extends PageableCustomInventory {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void refresh() {
|
public void refresh() {
|
||||||
|
while (getPage() > lastPage()){
|
||||||
|
previousPage();
|
||||||
|
}
|
||||||
for (int i = 45; i < 54; i++) {
|
for (int i = 45; i < 54; i++) {
|
||||||
inventory.setItem(i, createEmptyStack());
|
inventory.setItem(i, createEmptyStack());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user