QuiltMC / quilt-config

Quilt Config (aka "haven king's metadata of madness") is a library designed to facilitate the creation and management of config files.
Apache License 2.0
21 stars 8 forks source link

Tweak ReflectiveConfigCreator to be more forgiving when scanning for fields #2

Closed AlexIIL closed 2 years ago

AlexIIL commented 2 years ago

This allows static or transient fields to not be final, and also allows configured fields to be private - which might be useful if the config class has some other way to expose the config value to the rest of the mod.

I'm not sure if the "is public" check is necessary, since we probably don't care if we leave Field.isAccessible() on true unnecessarily.