Skip to content

Commit

Permalink
remove the bottom row of items from the max slot count as they were m…
Browse files Browse the repository at this point in the history
…essing with pagination
  • Loading branch information
ryderbelserion committed Jul 28, 2024
1 parent 5a08a4c commit dbb9e2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -752,14 +752,14 @@ private void saveFile() {
* @return the max page for the preview.
*/
public final int getMaxPage(final Tier tier) {
return (int) Math.ceil((double) getPreviewItems(null, tier).size() / (this.borderToggle ? this.maxSlots - 18 : this.maxSlots));
return (int) Math.ceil((double) getPreviewItems(null, tier).size() / (this.borderToggle ? this.maxSlots - 18 : this.maxSlots - 9));
}

/**
* @return the max page for the preview.
*/
public final int getMaxPage() {
return (int) Math.ceil((double) getPreviewItems().size() / (this.borderToggle ? this.maxSlots - 18 : this.maxSlots));
return (int) Math.ceil((double) getPreviewItems().size() / (this.borderToggle ? this.maxSlots - 18 : this.maxSlots - 9));
}

/**
Expand Down

0 comments on commit dbb9e2a

Please sign in to comment.