Hi,
the mixins.json file from the fabric-example-mod:
{
"required": true,
"package": "com.example.mixin.client",
"compatibilityLevel": "JAVA_21",
"client": [
"ExampleClientMixin"
],
"injectors": {
"defaultRequire": 1
}
}
I downloaded it and testet it. Everything works. However when running the game with my mod and the following mixins.json file, I get an error:
mixins.json:
{
"required": true,
"package": "com.my.mod.mixins",
"compatibilityLevel": "JAVA_21",
"client": [
"SomeMixin",
"OtherMixin"
],
"injectors": {
"defaultRequire": 1
}
}
Error:
Uncaught exception in thread "main"
...
Caused by: org.spongepowered.asm.launch.MixinInitialisationError: Mixin config mod.mixins.json specifies compatibility level JAVA_21 which is not recognised
...
When changing the compatibilityLevel to JAVA_17 everything works for some reason. Why? It doesn't seem right to leave the compatibilityLevel to JAVA_17 when my project is in JAVA_21.