Dye The World

Dye The World

13k Downloads

Dye The World crashes Create Steam 'n' Rails via Kotlin for Forge

Closed this issue ยท 1 comments

commented

What happened?

The game crashes during mod loading.
The log shows that dye_the_world fails to initialize due to a miscast between Forge and KotlinForForge
Then Steam 'n' Rails fails when trying to access DyedRailways.kt, which depends on dye_the_world. The crash is reproducible and occurs consistently with this mod combination.

latest.log
https://mclo.gs/8DDF0JW

crash-2025-11-06_11.05.20-fml.txt
https://mclo.gs/AK5ksfn

(mod temporarily disabled untill issue is fixed)

Loader

forge

Mod Version

1.5.0 (dye_the_world-1.5.0.jar)

Minecraft Version

1.20

Relevant log output

[11:30:20] [modloading-worker-0/ERROR] [KotlinForForge]: Failed to initialize mod dye_the_world
java.lang.ClassCastException: net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext cannot be cast to thedarkcolour.kotlinforforge.KotlinModLoadingContext
    at thedarkcolour.kotlinforforge.KotlinModLoadingContext$Companion.get(KotlinModLoadingContext.kt:18)
    at com.possible_triangle.dye_the_world.registrate.DyedRegistrate.getModEventBus(DyedRegistrate.kt:120)
    at com.possible_triangle.dye_the_world.ForgeEntrypoint.<clinit>(ForgeEntrypoint.kt:22)
    ...
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.possible_triangle.dye_the_world.ForgeEntrypoint


[11:30:20] [main/ERROR] [railways]: Failed to load mod railways
java.lang.ExceptionInInitializerError
    at com.railwayteam.railways.util.ColorUtils.handler$gac000$coloredName(ColorUtils.java:546)
    at com.railwayteam.railways.registry.CRPalettes.register(CRPalettes.java:63)
    ...
Caused by: java.lang.ClassCastException: net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext cannot be cast to KotlinModLoadingContext
    at com.possible_triangle.dye_the_world.index.DyedRailways.<clinit>(DyedRailways.kt:27)
commented

you're right, I have fixed this in dev but seems like I did not release it yet, will create a hotfix that should make this work again