mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
add page calculation
This commit is contained in:
parent
3b57365c1f
commit
13895ff528
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user