diff --git a/src/main/java/org/spongepowered/asm/mixin/transformer/MixinClassWriter.java b/src/main/java/org/spongepowered/asm/mixin/transformer/MixinClassWriter.java index b61c0235e..7f521ec14 100644 --- a/src/main/java/org/spongepowered/asm/mixin/transformer/MixinClassWriter.java +++ b/src/main/java/org/spongepowered/asm/mixin/transformer/MixinClassWriter.java @@ -53,10 +53,10 @@ protected String getCommonSuperClass(final String type1, final String type2) { ClassInfo d = ClassInfo.forName(type2); if (c.hasSuperClass(d)) { - return type1; + return type2; } if (d.hasSuperClass(c)) { - return type2; + return type1; } if (c.isInterface() || d.isInterface()) { return MixinClassWriter.JAVA_LANG_OBJECT; @@ -68,7 +68,7 @@ protected String getCommonSuperClass(final String type1, final String type2) { return MixinClassWriter.JAVA_LANG_OBJECT; } - } while (!c.hasSuperClass(d)); + } while (!d.hasSuperClass(c)); return c.getName(); }