add page calculation

This commit is contained in:
Ryder Belserion 2024-10-11 14:34:46 -04:00
parent 3b57365c1f
commit 13895ff528
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,10 @@ public class AuctionsMenu extends Holder {
getItems(); // populates the lists
int maxPage = Methods.getMaxPage(this.items);
for (;this.page > maxPage; this.page--);
HolderManager.addShopType(this.player, this.shopType);
switch (this.shopType) {

View File

@ -60,6 +60,10 @@ public class CurrentMenu extends Holder {
getItems();
int maxPage = Methods.getMaxPage(this.items);
for (;this.page > maxPage; this.page--);
for (final String key : this.options) {
if (!this.config.contains("Settings.GUISettings.OtherSettings." + key)) {
continue;