mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-20 18:09:37 +00:00
Init mixin's ClassInfo last so that init failures don't create bad state
This commit is contained in:
1 parent
b28f8b73c7
commit
3910f72e48
1 file changed
+1
-1
@@ -182,11 +182,11 @@ class MixinInfo extends TreeInfo implements Comparable<MixinInfo>, IMixinInfo {
|
||||
this.mixinBytes = this.loadMixinClass(this.className, runTransformers);
|
||||
|
||||
ClassNode classNode = this.getClassNode(0);
|
||||
this.classInfo = ClassInfo.fromClassNode(classNode);
|
||||
this.priority = this.readPriority(classNode);
|
||||
this.targetClasses = this.readTargetClasses(classNode, suppressPlugin);
|
||||
this.targetClassNames = Collections.unmodifiableList(Lists.transform(this.targetClasses, Functions.toStringFunction()));
|
||||
this.validationClassNode = classNode;
|
||||
this.classInfo = ClassInfo.fromClassNode(classNode);
|
||||
}
|
||||
|
||||
void validate() {
|
||||
|
||||
Reference in new issue
Block a user