mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-18 19:39:14 +00:00
Fix generic super lookups
This commit is contained in:
1 parent
1e6ae382dc
commit
e9d93c66ca
1 file changed
+4
@@ -106,6 +106,10 @@ public class TargetValidator extends MixinValidator {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MirrorUtils.isAssignable(this.processingEnv, targetType, superClass)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
TypeElement targetElement = (TypeElement)((DeclaredType)targetType).asElement();
|
||||
TypeMirror targetSuper = targetElement.getSuperclass();
|
||||
if (targetSuper.getKind() == TypeKind.NONE) {
|
||||
|
||||
Reference in new issue
Block a user