TeamMidnightDust / MidnightLib

Common Library for Team MidnightDust's mods. Provides a config api, common utils, and cosmetics.
https://midnightdust.eu/midnightlib
MIT License
34 stars 17 forks source link

MidnightConfig suggestion - `@RequiresRestart` #20

Closed triphora closed 1 year ago

triphora commented 1 year ago

An annotation which, when a config option is set with it, prompts the user to either restart or continue playing without the value actually changed.

Motschen commented 1 year ago

This would actually be quite hard (if not impossible) with the current way saving values is implemented and changing the way saving is handled, as well as creating that prompt would increase file size quite heavily. In my opinion, just stating it in the tooltip would be enough for most people.