Skip to content

Commit

Permalink
Woops forgot this part
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Aug 21, 2023
1 parent 734a389 commit d99687f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ protected String getCommonSuperClass(String type1, String type2) {
try {
return super.getCommonSuperClass(type1, type2);
} catch (TypeNotPresentException e) {
if ("net/minecraft/class_1071".equals(type1) && "net/minecraft/class_987".equals(type2)) {
return "java/lang/Object";
}

if ("net/minecraft/class_987".equals(type1) && "java/lang/Object".equals(type2)) {
return type2;
}

System.out.println("Common of: " + type1 + " " + type2);
e.printStackTrace();
return "java/lang/Object";
Expand Down

0 comments on commit d99687f

Please sign in to comment.