Skip to content

Commit

Permalink
Fixed paged component with updates + Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ToberoCat committed Aug 6, 2023
1 parent 3a352e9 commit 8fea260
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void addComponent(@NotNull GuiComponent component) {
component.setOffsetY(pair.y());
page.add(api, component);

embedded = pages.get(showingPage);
embedded = pages.get(Math.min(showingPage, pages.size() - 1));
if (currentPatternIndex < pattern.length) return;
currentPatternIndex = 0;
addPage(createEmptyPage());
Expand Down
13 changes: 12 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ api-version: 1.16
authors: [ Tobero ]
commands:
guiengine:
description: View your guis
description: View your guis
permissions:
guiengine:
default: op
guiengine.reload:
default: op
guiengine.open:
default: op
guiengine.dump-open:
default: op
guiengine.give:
default: op

0 comments on commit 8fea260

Please sign in to comment.