aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-02-06 14:42:50 +0000
committerGitHub <noreply@github.com>2023-02-06 15:42:50 +0100
commit405b8b4804af7dfc1f4f53d947944980e203a88d (patch)
treedbfb4ec067ce1236167e8c5b7d6d2ad9150cc850
parent40887624fe1f1d843741ae1cbefb72ec7d4802f3 (diff)
downloadNotEnoughUpdates-405b8b4804af7dfc1f4f53d947944980e203a88d.tar.gz
NotEnoughUpdates-405b8b4804af7dfc1f4f53d947944980e203a88d.tar.bz2
NotEnoughUpdates-405b8b4804af7dfc1f4f53d947944980e203a88d.zip
Fixed Major issue of sound playing when clicking on an invisible arrow (#593)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java
index 86430804..1e70db7f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/core/util/ArrowPagesUtils.java
@@ -173,7 +173,7 @@ public class ArrowPagesUtils {
BUTTON_WIDTH,
BUTTON_HEIGHT
) &&
- currentPage < totalPages) {
+ currentPage < totalPages - 1) {
int newPage = currentPage + 1;
pageChange.accept(MathHelper.clamp_int(newPage, 0, totalPages - 1));
Utils.playPressSound();