mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 11:16:01 +00:00
Populate class nesting information
Co-authored-by: LlamaLad7 <[email protected]>
This commit is contained in:
1 parent
1d7fff6e64
commit
a64ce0d7cc
1 file changed
+3
-3
@@ -950,12 +950,12 @@ public final class ClassInfo {
|
||||
this.fields.add(new Field(field.getName(), org.objectweb.asm.Type.getDescriptor(field.getType()), field.getModifiers()));
|
||||
}
|
||||
|
||||
this.isProbablyStatic = true;
|
||||
this.isProbablyStatic = cls.getEnclosingClass() == null || Modifier.isStatic(cls.getModifiers());
|
||||
this.methodMapper = null;
|
||||
|
||||
this.access = cls.getModifiers();
|
||||
this.isInner = false;
|
||||
this.outerName = null;
|
||||
this.isInner = cls.getEnclosingClass() != null;
|
||||
this.outerName = cls.getDeclaringClass() != null ? getName(cls.getDeclaringClass()) : null;
|
||||
}
|
||||
|
||||
private static String getName(Class<?> cls) {
|
||||
|
||||
Reference in new issue
Block a user