Skip to content

Commit

Permalink
fix config overwrite issue again
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Aug 19, 2024
1 parent 316248f commit e9eeac9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
## Changelog
- update to 1.21.1
- fix config overwrite issue
- fix config overwrite issue again
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public class DynamicLightsConfig {
public DynamicLightsConfig(@NotNull RyoamicLights mod) {
this.mod = mod;

this.config = FileConfig.builder(CONFIG_FILE_PATH).autosave().writingMode(WritingMode.REPLACE).build();
this.config = FileConfig.builder(CONFIG_FILE_PATH)
.autosave()
.writingMode(WritingMode.REPLACE_ATOMIC)
.build();
this.entitiesLightSource = new BooleanSettingEntry("light_sources.entities", DEFAULT_ENTITIES_LIGHT_SOURCE, this.config,
Text.translatable("ryoamiclights.tooltip.entities"))
.withOnSet(value -> {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yarn_mappings=1.21.1+build.3
mappings_patch=1.21+build.4

archives_base_name=RyoamicLights
mod_version=0.2.10
mod_version=0.2.11
maven_group=org.thinkingstudio.ryoamiclights

fabric_loader_version=0.16.2
Expand Down

0 comments on commit e9eeac9

Please sign in to comment.