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
They are functionally identical and each of them works by themselves, but together they produce this error:
Mixin apply for mod amixintest1 failed amixintest1.mixins.json:RecipeMixin1 -> net.minecraft.class_1860:
org.spongepowered.asm.mixin.transformer.throwables.InvalidInterfaceMixinException amixintest1.mixins.json:RecipeMixin1->@Inject::testInject2(Lnet/minecraft/class_1263;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V from mod amixintest1 is not supported in interface mixin [ -> PREINJECT Applicator Phase -> amixintest1.mixins.json:RecipeMixin1 -> Prepare Injections]
Now for the really weird part, if both mixins have the exact same target descriptor, then they work perfectly fine in tandem!
If both injectors are in the same mixin class, they also work fine together.
When one or both of them target the intermediary name "method_8111", this issue disappears as well.
This issue also applies when two mods use different mappings, which is how I originally ran into it.
My Retro-Exchange PR modmuss50/Retro-Exchange#22 and a test mod of mine both have a Recipe mixin like above, only difference being that Retro-Exchange uses Mojmaps while the test mod uses yarn.
Found this really weird issue that was hard to nail down, I guess it's best to just start with a minimal example.
Consider these 2 mixins:
They are functionally identical and each of them works by themselves, but together they produce this error:
Now for the really weird part, if both mixins have the exact same target descriptor, then they work perfectly fine in tandem!
If both injectors are in the same mixin class, they also work fine together.
When one or both of them target the intermediary name
"method_8111"
, this issue disappears as well.This issue also applies when two mods use different mappings, which is how I originally ran into it.
My Retro-Exchange PR modmuss50/Retro-Exchange#22 and a test mod of mine both have a
Recipe
mixin like above, only difference being that Retro-Exchange uses Mojmaps while the test mod uses yarn.The
InvalidInterfaceMixinException
is thrown hereMixin/src/main/java/org/spongepowered/asm/mixin/transformer/MixinApplicatorInterface.java
Lines 135 to 138 in f81f94c
no idea where the original
InvalidInjectionException
comes from, looking at #51 reveals nothing obvious either.The text was updated successfully, but these errors were encountered: