Crashes when getConfigScreen
Hashibutogarasu opened this issue ยท 0 comments
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