Skip to content

Commit

Permalink
Fix longstanding bug of not showing the no-pages message
Browse files Browse the repository at this point in the history
Thanks to Nik2810 for reporting over Discord
  • Loading branch information
A248 committed Apr 12, 2024
1 parent f0dfc41 commit 09c9ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private String replaceTargetIn(String str) {
}

private void noPunishmentsOnThisPage(int page) {
if (page == 0) { // No pages whatsoever
if (page == 1) { // No pages whatsoever
ComponentText noPages = section.noPages();
ComponentLike message = (target == null) ? noPages : noPages.replaceText("%TARGET%", target);
sender().sendMessage(message);
Expand Down
1 change: 1 addition & 0 deletions bans-core/src/main/resources/contributors
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ LaurenceBarnes
MattVid
mcmdev
Michael Sykes
Nik2810
Notro
ox
PasteDev
Expand Down

0 comments on commit 09c9ffe

Please sign in to comment.