Skip to content

The default value of the config is written to the file multiple times, one for each time I start my mod #75

@TechPro424

Description

@TechPro424

The default value of the config is written to the file multiple times, one for each time I start my mod
Here's my config system: https://gist.github.com/TechPro424/aac4a8f988b13ab0381c1e6295d5fbad

The JsonOperations.loadConfigFromFile(); is called twice, once in my mod's onInitialize() method in the main entrypoint, and in the Config class itself
It's called in the mod's onInitialize() method so that any problems/errors with serializing the config can be identified on launch, rather than waiting for the mod's functionality to kick in, and once more in the Config class to store the serialized config in the instance

I don't think this should cause issues, but just in case

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions