Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Server: fix icons loading
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Dec 21, 2023
1 parent df5a506 commit 1310144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/flectone/chat/manager/FileManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ public BufferedImage getIcon(String icon) {
File fileIcon = new File(DATA_FOLDER + ICONS_FOLDER + icon + ".png");
iconsMap.put(icon, ImageIO.read(fileIcon));
} catch (IOException ignored) {}
return null;

return iconsMap.get(icon);
}

private void loadIcons() {
Expand Down

0 comments on commit 1310144

Please sign in to comment.