Skip to content

Don't shade kotlinx-coroutines-core in Fabric .jar#26

Open
BlackBeltPanda wants to merge 1 commit intochasem-dev:mainfrom
Blockemon:fix-mod-incompat
Open

Don't shade kotlinx-coroutines-core in Fabric .jar#26
BlackBeltPanda wants to merge 1 commit intochasem-dev:mainfrom
Blockemon:fix-mod-incompat

Conversation

@BlackBeltPanda
Copy link
Copy Markdown

@BlackBeltPanda BlackBeltPanda commented Nov 11, 2025

Fabric Language Kotlin already provides coroutines. Shading them into the .jar creates compatibility issues with other mods that attempt to use methods from a newer Kotlin version if the server loads an older one from Cobblemon Extras. For example, if a mod migrates from kotlinx.datetime.Clock to kotlin.time.Clock, that mod can fail to call the new PlatformImplementations.getSystemClock(), which doesn't exist in the PlatformImplementations bundled with Cobblemon Extras.

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

Successfully merging this pull request may close these issues.

1 participant