TerraformersMC / ModMenu

A menu for, you guessed it, mods!
MIT License
509 stars 157 forks source link

Fix mods screen initialization being slow with many mods #790

Closed LostLuma closed 1 month ago

LostLuma commented 1 month ago

Resolves #727.

Changes the check for whether a mod has a config screen to check whether a config screen factory is available, and defers actually constructing individual config screens until the user actually clicks the configure button.

As a side-effect broken config screens are no longer reported on until the user has tried opening the config screen at least once, but I think this should be an acceptable change considering the improved user experience otherwise.