Skip to content

Commit

Permalink
don't call getButtons again in ButtonPaginatedMask
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Jul 17, 2024
1 parent e4fbe04 commit 09a0817
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public MaskSlot getMaskSlot() {
return Optional.empty();
}

int pageAmount = (int) Math.ceil((double) getButtons(uuid).size() / slots.size());
int pageAmount = (int) Math.ceil((double) buttons.size() / slots.size());
pageNumber = this.getAndSetExactPage(uuid, pageNumber, pageAmount);

Map<Integer, Button> map = new HashMap<>();
Expand Down

0 comments on commit 09a0817

Please sign in to comment.