Skip to content

Commit

Permalink
Fix warps not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Apr 16, 2021
1 parent 59a66d7 commit 24fc320
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ public static void displayWarpList(Player player, int pageNumber) {
int itemsPerPage = HuskHomes.getSettings().getWarpsPerPage();
int warpsLowerBound = (pageNumber - 1) * itemsPerPage;
int warpsUpperBound = pageNumber * itemsPerPage;
if (warpsUpperBound > getAccessibleWarpCount(player, warps)) {
warpsUpperBound = getAccessibleWarpCount(player, warps);
if (warpsUpperBound > warps.size()) {
warpsUpperBound = warps.size();
}

player.sendMessage("");
Expand Down

0 comments on commit 24fc320

Please sign in to comment.