diff --git a/src/main/java/me/william278/huskhomes2/teleport/ListHandler.java b/src/main/java/me/william278/huskhomes2/teleport/ListHandler.java index a3f95495a..339dfa061 100644 --- a/src/main/java/me/william278/huskhomes2/teleport/ListHandler.java +++ b/src/main/java/me/william278/huskhomes2/teleport/ListHandler.java @@ -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("");