Skip to content

Commit

Permalink
fix error spam when mod does not provide icon
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Jan 29, 2024
1 parent 98ab02f commit ecb2b87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ public BufferedImage createIcon(ModContainer iconSource, String iconPath) {

return null;
} catch (Throwable t) {
if (!iconPath.equals("assets/" + iconSource.getMetadata().getId() + "/icon.png")) {
if (!iconPath.equals("/assets/" + iconSource.getMetadata().getId() + "/icon.png")) {
LOGGER.error("Invalid mod icon for icon source {}: {}", iconSource.getMetadata().getId(), iconPath, t);
}
return null;

0 comments on commit ecb2b87

Please sign in to comment.