Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for controlling the backing map of configs #61

Merged
merged 1 commit into from
Apr 13, 2019

Conversation

tterrag1098
Copy link
Contributor

@tterrag1098 tterrag1098 commented Apr 12, 2019

Adds a Supplier<Map<String, Object>> field to AbstractConfig, and many helper constructors/factory methods to utilize it. This allows full control over the backing map of a config object, including nested configs. Previously this was not possible, as you could only control the initial map object, and not nested creations of maps, making the solution recommended here incomplete.

This partially solves #56

Needed to solve MinecraftForge/MinecraftForge#5688

@TheElectronWill
Copy link
Owner

Great! This is a huge improvement for ordered configurations.
Thanks

@TheElectronWill TheElectronWill merged commit c5585c3 into TheElectronWill:master Apr 13, 2019
@TheElectronWill TheElectronWill added the minecraft_forge ⛏️ Reported by or related to MCForge or a Forge mod label Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core ⚙️ enhancement ⬆️ minecraft_forge ⛏️ Reported by or related to MCForge or a Forge mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants