fix shift-click not working on config min option

This commit is contained in:
James Seibel
2026-03-14 14:33:39 -05:00
parent f121860563
commit 9d35a70437
@@ -445,7 +445,11 @@ public class ClassicConfigGUI
// move forward or backwards depending on if the shift key is pressed
int index = shiftPressed ? startingIndex-1 : startingIndex+1;
index = (index >= enumList.size()) ? 0 : index;
// wrap around to the other side of the array when necessary
if (index >= enumList.size()) { index = 0; }
else if (index < 0) { index = enumList.size() - 1; }
// walk through the enums to find the next selectable one
while (index != startingIndex)
@@ -462,14 +466,8 @@ public class ClassicConfigGUI
index = shiftPressed ? index-1 : index+1;
// wrap around to the other side of the array when necessary
if (index >= enumList.size())
{
index = 0;
}
else if (index < 0)
{
index = enumList.size() - 1;
}
if (index >= enumList.size()) { index = 0; }
else if (index < 0) { index = enumList.size() - 1; }
}