Skip to content

Commit 47aed64

Browse files
committed
fix: drop down menus not working with strings
1 parent 01effd4 commit 47aed64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/io/github/notenoughupdates/moulconfig/gui/editors/GuiOptionEditorDropdown.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private int getSelectedIndex() {
227227
} else if (constants != null) {
228228
return ((Enum) selectedObject).ordinal();
229229
} else {
230-
return Arrays.asList(values).indexOf(selectedObject);
230+
return (values).stream().map(StructuredText::getText).collect(Collectors.toList()).indexOf(selectedObject);
231231
}
232232
}
233233

0 commit comments

Comments
 (0)