diff --git a/src/main/java/com/cleanroommc/modularui/widgets/AbstractCycleButtonWidget.java b/src/main/java/com/cleanroommc/modularui/widgets/AbstractCycleButtonWidget.java index 439dedc34..18059207a 100644 --- a/src/main/java/com/cleanroommc/modularui/widgets/AbstractCycleButtonWidget.java +++ b/src/main/java/com/cleanroommc/modularui/widgets/AbstractCycleButtonWidget.java @@ -132,7 +132,7 @@ public void prev() { public void setState(int state, boolean setSource) { if (state < 0 || state >= this.stateCount) { - throw new IndexOutOfBoundsException("CycleButton state out of bounds"); + throw new IndexOutOfBoundsException("CycleButton state " + state + " out of bounds for length " + stateCount); } updateChild(state); if (setSource) {