You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing a Registrate in Kotlin, it throws an Exception since it invokes FMLJavaModLoadingContext.get() but Kotlin mod does not use FMLJavaModLoadingContext and its IEventBus. Please consider adding a custom IEventBus parameter.
Logs:
Exception message: java.lang.ClassCastException: class thedarkcolour.kotlinforforge.KotlinModLoadingContext cannot be cast to class net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext (thedarkcolour.kotlinforforge.KotlinModLoadingContext is in module [email protected] of loader 'LAYER PLUGIN' @402cdec9; net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext is in module [email protected] of loader 'LAYER PLUGIN' @402cdec9)
Stacktrace:
at net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext.get(FMLJavaModLoadingContext.java:33) ~[javafmllanguage-1.20.1-47.1.43.jar%23200!/:?] {}
at com.tterrag.registrate.AbstractRegistrate.getModEventBus(AbstractRegistrate.java:222) ~[Registrate-MC1.20-1.3.3.jar%23221!/:?] {re:classloading}
at com.tterrag.registrate.Registrate.create(Registrate.java:15) ~[Registrate-MC1.20-1.3.3.jar%23221!/:?] {re:classloading}
at concerrox.createmorecogwheels.CreateMoreCogwheelsKt$REGISTRATE$2.invoke(CreateMoreCogwheelsKt.java:21) ~[11779893590392133103.jar%23211!/:?] {re:classloading}
The text was updated successfully, but these errors were encountered:
Environment:
When initializing a Registrate in Kotlin, it throws an Exception since it invokes
FMLJavaModLoadingContext.get()
but Kotlin mod does not use FMLJavaModLoadingContext and itsIEventBus
. Please consider adding a customIEventBus
parameter.Logs:
The text was updated successfully, but these errors were encountered: