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

Nested collections aren't supported #500

Open
BlackBaroness opened this issue Jun 3, 2024 · 0 comments
Open

Nested collections aren't supported #500

BlackBaroness opened this issue Jun 3, 2024 · 0 comments

Comments

@BlackBaroness
Copy link

Hi!

Seems like Configurate can't handle nested collections, like:

val townTypePrices: Map<Enum, Map<Material, Int>> = mapOf(
        Enum to mapOf(Material.EMERALD to 3, Material.STONE to 100),
        Enum to mapOf(Material.EMERALD to 3, Material.STONE to 100),
        Enum to mapOf(Material.EMERALD to 3, Material.STONE to 100),
    ),

I see the same issue with lists inside lists, etc.
Always had to make an object what will store other collections, and store a list of these objects, but that's not good

When I save it, it always just prints something like town-type-prices: {}

@BlackBaroness BlackBaroness changed the title Unable to have collection inside collection Nested collections aren't supported Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant