refactor: use configurate for config #6
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "amy/chomensmod:1.20.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lots of changes here. Needs thorough testing (with pre-existing configs) before merging.
I don't expect you to merge this, it's a pretty big change and you might not really like Configurate's API.
However, this should allow for easy config version migrations. I may implement this in a future PR.
Changes:
This leads to the default config format being a bit ugly, as BlockPos fields will take up one line per field, instead of being on the same line.
Additionally, the "key" field on the BotInfo class is not explicitly set to null on the config. I am not sure if there is a way to fix this.
This means it's automatically validated when loading the config. Hopefully, this won't break any existing configs. The idea is to replace the custom placeholders with something like
{"selector":"@s"}
in the future.