Skip to content

Commit

Permalink
Handle path verifications error when loading mod logo (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind authored Jul 4, 2024
1 parent 498ea20 commit b1ffaf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public void upload() {
}
}), new Size2i(logo.getWidth(), logo.getHeight()));
}
} catch (IOException e) {}
} catch (IOException | IllegalArgumentException e) {}
return Pair.<ResourceLocation, Size2i>of(null, new Size2i(0, 0));
}).orElse(Pair.of(null, new Size2i(0, 0)));

Expand Down

0 comments on commit b1ffaf3

Please sign in to comment.