Night Config Fixes [Archived]

A small number of workarounds for relatively common issues concerning the Night Config library.

File Details

[FORGE] [1.19.2] NightConfigFixes-v4.0.6

  • R
  • Mar 9, 2023
  • 62.30 KB
  • 39.2K
  • 1.19.3+3
  • Forge

File Name

NightConfigFixes-v4.0.6-1.19.2-Forge.jar

Supported Versions

  • 1.19.3
  • 1.19.2
  • 1.19.1
  • 1.19

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:night-config-fixes-813369:4429432")

Learn more about Curse Maven

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[v4.0.6-1.19.2] - 2023-03-09

Changed

  • A backup is now created for config files that cannot be parsed before they are deleted

Fixed

  • Fixed correctConfigValuesFromDefaultConfig option not working correctly for some config values

[v4.0.5-1.19.2] - 2023-03-03

Fixed

  • Fixed an issue with mods expecting the original ForgeConfigSpec to be present when any ModConfigEvent is fired

[v4.0.4-1.19.2] - 2023-03-03

Fixed

  • Fixed built-in values still be restored for faulty config values in some cases

[v4.0.3-1.19.2] - 2023-03-03

Changed

  • Night Config Fixes now also handles individual config values being corrected:
    • In Forge for those cases always the built-in default value for these options is used if the current value cannot be read
    • Now the default config in defaultconfigs is checked first if it contains an entry for the value being corrected
  • ModConfig is no longer wrapped internally, changes to final fields are now applied using Unsafe

[v4.0.2-1.19.2] - 2023-02-03

Changed

  • Mark the mod as incompatible with ServerCore on Fabric
  • Night Config is now a required dependency on Fabric, if you don't have there is no point in having this mod anyway

[v4.0.1-1.19.2] - 2023-01-20

Added

  • Implemented an optional alternative mode for applying the workaround to com.electronwill.nightconfig.core.io.ParsingException: Not enough data available
  • Use it in case the default mode does not work reliably for you, the mode can be switched in the config file

[v4.0.0-1.19.2] - 2023-01-19

  • Initial release