artemis-odb-contrib icon indicating copy to clipboard operation
artemis-odb-contrib copied to clipboard

Singleton components do not deserialize with strict mode = false

Open bryanbrunt opened this issue 4 years ago • 0 comments

Trying to deserialize a singleton GameSingleton component

FileInputStream fin = new FileInputStream("saves/game_save.json"); worldSerializationManager.load(fin, SaveFileFormat.class);

Config:

.with(new SingletonPlugin(false))

All of the fields on the deserialized Singleton are null.

bryanbrunt avatar Dec 28 '20 20:12 bryanbrunt