From e1d4702c0c9c755fb44b20780d9ef9b2dd282ee8 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 14 Mar 2019 15:57:41 +0100 Subject: [PATCH] Fix #47 --- src/main/java/fr/minuskube/inv/content/Pagination.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/minuskube/inv/content/Pagination.java b/src/main/java/fr/minuskube/inv/content/Pagination.java index df2e8ac4..2ca8e5c7 100644 --- a/src/main/java/fr/minuskube/inv/content/Pagination.java +++ b/src/main/java/fr/minuskube/inv/content/Pagination.java @@ -58,7 +58,7 @@ public boolean isFirst() { @Override public boolean isLast() { int pageCount = (int) Math.ceil((double) this.items.length / this.itemsPerPage); - return this.currentPage == pageCount - 1; + return this.currentPage >= pageCount - 1; } @Override