Skip to content

Commit

Permalink
Fix crash in MixinIntermediaryDevRemapper when trying to remap method…
Browse files Browse the repository at this point in the history
…s in Object.

Adapted from Fabric Loader commit 7fde9dc1f94b56bcc796264923b082c2bcfedab2,
PR FabricMC/fabric-loader#746.

Co-authored-by: modmuss50 <[email protected]>
  • Loading branch information
Juuxel and modmuss50 committed Feb 7, 2023
1 parent 3deac08 commit ad1cd4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public String mapMethodName(String owner, String name, String desc) {
return s;
}

if (!classInfo.getSuperName().startsWith("java/")) {
if (classInfo.getSuperName() != null && !classInfo.getSuperName().startsWith("java/")) {
ClassInfo cSuper = classInfo.getSuperClass();

if (cSuper != null) {
Expand Down Expand Up @@ -221,7 +221,7 @@ public String mapFieldName(String owner, String name, String desc) {
return s;
}

if (c.getSuperName().startsWith("java/")) {
if (c.getSuperName() == null || c.getSuperName().startsWith("java/")) {
break;
}

Expand Down

0 comments on commit ad1cd4d

Please sign in to comment.