From 9fa4563e9d6921f85f183f59323e35e4769aa7e6 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 24 Nov 2023 15:58:56 +0000 Subject: [PATCH] Fix AssertionError (mcdev-error-reprt#1504) --- .../mixinextras/MixinExtrasInjectorAnnotationHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/platform/mixin/handlers/mixinextras/MixinExtrasInjectorAnnotationHandler.kt b/src/main/kotlin/platform/mixin/handlers/mixinextras/MixinExtrasInjectorAnnotationHandler.kt index 4214a0b18..f51107c77 100644 --- a/src/main/kotlin/platform/mixin/handlers/mixinextras/MixinExtrasInjectorAnnotationHandler.kt +++ b/src/main/kotlin/platform/mixin/handlers/mixinextras/MixinExtrasInjectorAnnotationHandler.kt @@ -149,7 +149,7 @@ abstract class MixinExtrasInjectorAnnotationHandler : InjectorAnnotationHandler( .resolveAsm(annotation.project) as? MethodTargetMember )?.classAndMethod sourceClassAndMethod?.method?.getGenericReturnType(sourceClassAndMethod.clazz, annotation.project) - ?: Type.getType(insn.desc).toPsiType(elementFactory) + ?: Type.getReturnType(insn.desc).toPsiType(elementFactory) } is FieldInsnNode -> {