Skip to content

Handle null config data.#9

Merged
BluSpring merged 2 commits intoKiltMC:kilt/1.20.1from
Acuadragon100:kilt/1.20.1-handle-null-config-data
Mar 4, 2026
Merged

Handle null config data.#9
BluSpring merged 2 commits intoKiltMC:kilt/1.20.1from
Acuadragon100:kilt/1.20.1-handle-null-config-data

Conversation

@Acuadragon100
Copy link
Copy Markdown

Quick fix for KiltMC/Kilt#676
Forge Config API port seems to send null values to ModConfig::acceptSyncedConfig to indicate that the config should be unloaded (see the source code). This patch basically just copies that behaviour. The reason the bug disappeared when adding Forge Config API port is that it no longer unloads the config on world exit in version 8.0.3 onwards, while Dungeon Now Loading bundles 8.0.0.

Why is the Nullable annotation between the byte and the square brackets, you ask? Answer: IntelliJ preferred it that way.

Comment thread fmlcore/src/main/java/net/minecraftforge/fml/config/ModConfig.java Outdated
@Acuadragon100 Acuadragon100 requested a review from BluSpring March 4, 2026 21:13
@BluSpring BluSpring merged commit 724cd3c into KiltMC:kilt/1.20.1 Mar 4, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants