Skip to content

Commit

Permalink
Fix quests occupying pagination row slots
Browse files Browse the repository at this point in the history
  • Loading branch information
AfkF24 authored and LMBishop committed Jan 24, 2024
1 parent c5f63c4 commit b2918ae
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ public void populate(String customElementsPath, List<MenuElement> menuElementsTo
PageNextMenuElement pageNextMenuElement = new PageNextMenuElement(config, this);
PagePrevMenuElement pagePrevMenuElement = new PagePrevMenuElement(config, this);
PageDescMenuElement pageDescMenuElement = new PageDescMenuElement(config, this);
// add manually spacer then let people change item
staticMenuElements[46] = spacer;
staticMenuElements[47] = spacer;
staticMenuElements[51] = spacer;
staticMenuElements[52] = spacer;
staticMenuElements[53] = spacer;

// manually add spacers to the bottom row, then let people change items
for (int i = 45; i < 54; staticMenuElements[i++] = spacer);

if(backMenuElement != null && backMenuElement.isEnabled())
staticMenuElements[backMenuElement.getSlot()] = backMenuElement == null ? spacer : backMenuElement;
if(pagePrevMenuElement.isEnabled())
Expand Down

0 comments on commit b2918ae

Please sign in to comment.