Night Config Fixes [Archived]

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

[FABRIC] [1.19.2] NightConfigFixes-v4.0.6

File nameNightConfigFixes-v4.0.6-1.19.2-Fabric.jar
Uploader
FuzsFuzs
Uploaded
Mar 9, 2023
Downloads
343.2K
Size
40.1 KB
Mod Loaders
Fabric
File ID
4429431
Type
R
Release
Supported game versions
  • 1.19.3
  • 1.19.2
  • 1.19.1
  • 1.19

Curse Maven Snippet

Fabric

modImplementation "curse.maven:night-config-fixes-813369:4429431"

Learn more about Curse Maven

What's new

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

This mod has no additional files