shedaniel / cloth-config

Client-Sided API for Minecraft 1.14
Other
185 stars 70 forks source link

Crashes when getConfigScreen #257

Open Hashibutogarasu opened 4 months ago

Hashibutogarasu commented 4 months ago
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