aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java b/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java
index 63a932b5..d3b9c04d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java
@@ -72,6 +72,10 @@ public class GuiOptionEditorDraggableList extends GuiOptionEditor {
int height = super.getHeight() + 13;
for (int strIndex : activeText) {
+ if (strIndex >= exampleText.length) {
+ activeText.remove((Integer) strIndex);
+ break;
+ }
String str = exampleText[strIndex];
height += 10 * str.split("\n").length;
}