Skip to content

Update config example to register CONFIG_SPEC#312

Closed
alanleouk wants to merge 1 commit intoneoforged:mainfrom
alanleouk:fix-example-PassInConfigSpec
Closed

Update config example to register CONFIG_SPEC#312
alanleouk wants to merge 1 commit intoneoforged:mainfrom
alanleouk:fix-example-PassInConfigSpec

Conversation

@alanleouk
Copy link

@alanleouk alanleouk commented Dec 31, 2025

Update example code in documentation for config

Issue

container.registerConfig(ModConfig.Type.COMMON, ExampleConfig.CONFIG); does not compile

Fix

registerConfig accepts IConfigSpec not the configuration class.

Update code to pass in ExampleConfig.CONFIG_SPEC, instead of ExampleConfig.CONFIG

ChampionAsh5357 added a commit to ChampionAsh5357/NeoForge-Docs that referenced this pull request Jan 8, 2026
@ChampionAsh5357 ChampionAsh5357 mentioned this pull request Jan 8, 2026
21 tasks
@IchHabeHunger54
Copy link
Member

Closed via #315. Thanks for your contribution regardless!

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