Mixin apply failed
maxanier opened this issue ยท 0 comments
If using Vampirism in an deobfuscated environment you might encounter a "Mixin apply failed" error upon game start.
This means you will have to disable mixin refmaps. See here: https://github.com/TeamLapen/Vampirism#run-vampirism-in-a-deobfuscated-environment. This is likely required for any mod using mixins.
Hopefully, this will not be required in future mixin versions
Example:
Mixin apply failed vampirism.mixins.json:MixinLivingEntity -> net.minecraft.entity.LivingEntity: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on handleVisibilityMod could not find any targets matching 'Lnet/minecraft/entity/LivingEntity;func_213340_A(Lnet/minecraft/entity/Entity;)D' in net.minecraft.entity.LivingEntity. Using refmap vampirism.refmap.json [PREINJECT Applicator Phase -> vampirism.mixins.json:MixinLivingEntity -> Prepare Injections -> -> handler$zzb000$handleVisibilityMod(Lnet/minecraft/entity/Entity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on handleVisibilityMod could not find any targets matching 'Lnet/minecraft/entity/LivingEntity;func_213340_A(Lnet/minecraft/entity/Entity;)D' in net.minecraft.entity.LivingEntity. Using refmap vampirism.refmap.json [PREINJECT Applicator Phase -> vampirism.mixins.json:MixinLivingEntity -> Prepare Injections -> -> handler$zzb000$handleVisibilityMod(Lnet/minecraft/entity/Entity;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse]
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.findMethods(InjectionInfo.java:572) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:288) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:275) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:267) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}