File tree Expand file tree Collapse file tree
src/main/java/com/terraformersmc/modmenu/gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,6 +264,10 @@ protected void init() {
264264 this .addDrawableChild (modsFolderButton );
265265 this .addDrawableChild (doneButton );
266266
267+ // Ensure a valid entry is selected
268+ this .updateSelectedEntry (this .modList .getEntry (0 ));
269+ this .modList .select (this .selected );
270+
267271 this .init = true ;
268272 this .keepFilterOptionsShown = true ;
269273 }
@@ -521,10 +525,9 @@ public void updateSelectedEntry(ModListEntry entry) {
521525 this .descriptionListWidget .updateSelectedMod (selected .getMod ());
522526
523527 if (this .configureButton != null ) {
524-
525528 this .configureButton .active = getModHasConfigScreen (modId );
526529 this .configureButton .visible =
527- selected != null && getModHasConfigScreen (modId ) || modScreenErrors .containsKey (modId );
530+ getModHasConfigScreen (modId ) || modScreenErrors .containsKey (modId );
528531
529532 if (modScreenErrors .containsKey (modId )) {
530533 Throwable e = modScreenErrors .get (modId );
You can’t perform that action at this time.
0 commit comments