Describe the bug
After successfully packaging the minecraftenv mod using build.gradle, placing it in the Minecraft client's mods folder results in a java.lang.ClassNotFoundException: kotlin.NoWhenBranchMatchedException error, preventing the mod from loading. This issue may be related to Kotlin.
Environment
- Minecraft Version: 1.21
- Fabric Loader: 0.15.11
- Fabric API: 0.100.6+1.21
- JDK Version: 21
- OS: Windows 11
Reproduction Steps
- Clone the repository and navigate to the
src/craftground/MinecraftEnv directory
- Execute
./gradlew build (or shadowJar) to package the mod, generating a JAR file
- Place the JAR in the Minecraft client's
mods folder
Could you provide a more detailed, complete build process demonstration from source code to a runnable mod (including necessary configuration changes and commands)?
Thank you for your hard work and assistance! I really like your project.
Describe the bug
After successfully packaging the
minecraftenvmod usingbuild.gradle, placing it in the Minecraft client'smodsfolder results in ajava.lang.ClassNotFoundException: kotlin.NoWhenBranchMatchedExceptionerror, preventing the mod from loading. This issue may be related to Kotlin.Environment
Reproduction Steps
src/craftground/MinecraftEnvdirectory./gradlew build(orshadowJar) to package the mod, generating a JAR filemodsfolderCould you provide a more detailed, complete build process demonstration from source code to a runnable mod (including necessary configuration changes and commands)?
Thank you for your hard work and assistance! I really like your project.