cloth-config icon indicating copy to clipboard operation
cloth-config copied to clipboard

AutoConfig Complex Lists fail to load

Open Nolij opened this issue 2 years ago • 1 comments

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.

Nolij avatar Dec 09 '21 16:12 Nolij

Update: Switching from Jankson to GSON fixes this.

Is this just an issue with upstream Jankson?

Nolij avatar Dec 10 '21 14:12 Nolij