From fd66d9b4e43f056bc6783d5dbed31efaa3b2b452 Mon Sep 17 00:00:00 2001 From: PiTheGuy <55959311+PiTheGuy@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:06:04 -0500 Subject: [PATCH] Fix navigator (#237) * Fix navigator * Fix navigator * Fix navigator --- .../java/org/quiltmc/enigma/gui/element/NavigatorPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/NavigatorPanel.java b/enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/NavigatorPanel.java index 28bceb3e..3461fa8a 100644 --- a/enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/NavigatorPanel.java +++ b/enigma-swing/src/main/java/org/quiltmc/enigma/gui/element/NavigatorPanel.java @@ -110,7 +110,7 @@ private void wrapIndex() { } public void decrementIndex() { - this.currentIndex--; + this.currentIndex = Math.max(this.currentIndex - 1, 0); } private void tryNavigate() {