Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when getConfigScreen #257

Open
Hashibutogarasu opened this issue May 11, 2024 · 0 comments
Open

Crashes when getConfigScreen #257

Hashibutogarasu opened this issue May 11, 2024 · 0 comments

Comments

@Hashibutogarasu
Copy link

Hashibutogarasu commented May 11, 2024

ModLoadingContext.get().registerExtensionPoint(
                ConfigScreenHandler.ConfigScreenFactory.class,
                () -> new ConfigScreenHandler.ConfigScreenFactory((mc, prevScreen) ->  AutoConfig.getConfigScreen(ModConfig.class, prevScreen).get())
        );

When this code is executed, a NoSuchMethodError is throwed.

Error code

Caused by: java.lang.NoSuchMethodError: 'net.minecraft.network.chat.MutableComponent net.minecraft.network.chat.Component.m_237115_(java.lang.String)'

An exception is thrown in the debug environment, but for some reason it runs fine in the production environment.

Mod Loader:Forge
Cloth config version:11.1.118
Minecraft version:1.20
Spongepowered Mixin version:0.8.5

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

No branches or pull requests

1 participant