Cloth Config API (Fabric/Forge/NeoForge)

Cloth Config API (Fabric/Forge/NeoForge)

169M Downloads

AutoConfig Complex Lists fail to load

Nolij opened this issue ยท 1 comments

commented

How to reproduce:

  • store a complex list (list of custom class) in the AutoConfig of a mod
  • launch the client
  • add items to the list in the config (it should load in the cloth config screen properly)
  • save & quit
  • relaunch the client
  • open config screen

Expected outcome:

  • added items should load and show

Actual outcome:

  • list is reset to its default value

Effected version: 6.0.45

It is noteworthy that the items in the list are properly serialized and saved to file, and when adding a custom deserializer for the type being stored in the complex list and confirming it does successfully deserialize the items from the file this issue still occurs.

commented

Update: Switching from Jankson to GSON fixes this.

Is this just an issue with upstream Jankson?