We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8b9f89 + 23f5575 commit bede487Copy full SHA for bede487
src/main/java/com/samjakob/spigui/SGMenu.java
@@ -440,7 +440,7 @@ public boolean nextPage(HumanEntity viewer) {
440
if (currentPage < getMaxPage() - 1) {
441
currentPage++;
442
refreshInventory(viewer);
443
- this.onPageChange.accept(this);
+ if (this.onPageChange != null) this.onPageChange.accept(this);
444
return true;
445
} else {
446
return false;
@@ -459,7 +459,7 @@ public boolean previousPage(HumanEntity viewer) {
459
if (currentPage > 0) {
460
currentPage--;
461
462
463
464
465
0 commit comments