Night Config Fixes
Fuzs's workaround for the Night Config "Not enough data available" exception that crashes the game. It recreates a blanked config file from defaults instead.
📖 Introduction
Night Config Fixes, by Fuzs, exists for a single purpose: working around the com.electronwill.nightconfig.core.io.ParsingException: Not enough data available error that shows up during config loading when the Night Config library is involved.
Night Config is used by Forge's config system and by many mods on Fabric. The failure is that a config file randomly just goes blank. The next time Night Config tries to read it, it throws that exception and the game crashes. Per the mod page, reports of this were coming in daily for the Better Minecraft modpacks — common enough to warrant a dedicated workaround mod.
What it does — it catches the exception so the game no longer crashes, and instead recreates the config from its default values.
The part modpack authors must know — because of that, packs need to place their configured config files in the defaultconfigs directory rather than config. Otherwise a blanked file is restored to stock defaults instead of the values the pack intended.
A Forge-only extra — on Forge it also offers an option to generate server configs in the global config directory rather than per-world in serverconfig.
Where to install — it is optional on both client and server; install it on whichever side needs it.
Configuring it — you can do so in-game from the mod list / Mod Menu (Fabric requires Prospector's Mod Menu, and older Minecraft versions also require Forge Config Screens). To edit by hand, the files live under .minecraft/config as MOD_ID-client.toml, MOD_ID-common.toml, or MOD_ID-server.toml.
🕒 When to Use This Mod
Works automatically once installed, stepping in only when a config file has gone blank.
📦 Where It Matters Most
Large Forge/Fabric packs with many config files. The Better Minecraft packs in particular generated heavy reporting of this issue.
🎮 How It Changes Your Playthrough
You will never notice it in normal play. Its only visible effect is a default-value regeneration where a crash would have been.
🚀 Getting Started — First 30 Minutes
Step 1 — Check whether you've hit the "Not enough data available" crash. That single exception is all this mod works around.
Step 2 — Leave it alone. It works without configuration.
Step 3 — If you assemble your own pack, place your tuned config files in defaultconfigs rather than config.
💡 Gameplay Tips
- If you build packs, put your tuned config files in
defaultconfigs— leaving them only inconfigmeans a blanked file restores to stock defaults, not your pack's values. - On Forge you can relocate server configs — an option generates them in the global
configdirectory instead of per-worldserverconfig. - Optional on both sides — install it only where the problem actually occurs.
- Configure it from the in-game mod list — Fabric additionally needs Mod Menu, and older versions need Forge Config Screens.
⚠️ Common Confusing Points
- • What gets restored is the default — a blanked config is rebuilt from defaults, so hand-tuned values in that specific file are lost. Only a pack that properly uses
defaultconfigsgets its intended values back. - • This mod does exactly one thing — it works around one specific Night Config exception. It has nothing to do with general crashes or performance.
❓ FAQ
What problem does it solve?
The ParsingException: Not enough data available thrown during config loading with the Night Config library. It happens after a config file randomly goes blank, and normally crashes the game.
What is Night Config?
A Java library for reading and writing config files. Forge's config system is built on it, and many Fabric mods use it as well.
Will my modpack's config values be lost?
A blanked file is rebuilt from defaults. To preserve a pack's tuned values, those config files must live in the defaultconfigs directory rather than config.
Is there a difference between Forge and Fabric?
The core workaround is the same on both. Forge additionally gets an option to generate server configs in the global config directory instead of per-world serverconfig.