mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 13:52:11 +00:00
Make ClassInfo.Traversal actually use the provided traverse parameter
This commit is contained in:
1 parent
ffb78cdea8
commit
34c6e62c8f
2 files changed
+2
-2
No files matched your search
@@ -93,7 +93,7 @@ class ClassInfo extends TreeInfo {
|
||||
|
||||
private Traversal(Traversal next, boolean traverse) {
|
||||
this.next = next != null ? next : this;
|
||||
this.traverse = true;
|
||||
this.traverse = traverse;
|
||||
}
|
||||
|
||||
public Traversal next() {
|
||||
|
||||
@@ -268,7 +268,7 @@ class MixinInfo extends TreeInfo implements Comparable<MixinInfo>, IMixinInfo {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!targetClass.hasSuperClass(classNode.superName, ClassInfo.Traversal.NONE)) {
|
||||
if (!targetClass.hasSuperClass(classNode.superName, ClassInfo.Traversal.IMMEDIATE)) {
|
||||
throw new InvalidMixinException(this, "Super class '" + classNode.superName.replace('/', '.') + "' of " + this.name
|
||||
+ " was not found in the hierarchy of target class '" + targetClass + "'");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user