mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-20 20:22:31 +00:00
AP: Fix several cases of ASM TypeHandles breaking code that relies on Mirror.
(cherry picked from commit e5d9db491a)
This commit is contained in:
1 parent
89acb8387a
commit
1cec8b1377
11 files changed
+110
-104
No files matched your search
@@ -196,13 +196,13 @@ public abstract class ObfuscationEnvironment implements IObfuscationEnvironment
|
||||
}
|
||||
|
||||
// See if we can get the superclass from the reference
|
||||
TypeMirror superClass = type.getElement().getSuperclass();
|
||||
if (superClass.getKind() != TypeKind.DECLARED) {
|
||||
TypeHandle superClass = type.getSuperclass();
|
||||
if (superClass == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Well we found it, let's inflect the class name and recurse the search
|
||||
String superClassName = ((TypeElement)((DeclaredType)superClass).asElement()).getQualifiedName().toString();
|
||||
String superClassName = superClass.getSimpleName();
|
||||
return this.getObfMethod(method.move(superClassName.replace('.', '/')));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user