From 13101447b989de35fe6cd88f77fdfbb92e4d74cb Mon Sep 17 00:00:00 2001 From: TheFaser Date: Fri, 22 Dec 2023 03:42:01 +0500 Subject: [PATCH] Server: fix icons loading --- src/main/java/net/flectone/chat/manager/FileManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/flectone/chat/manager/FileManager.java b/src/main/java/net/flectone/chat/manager/FileManager.java index 6dc918d..d5b4078 100644 --- a/src/main/java/net/flectone/chat/manager/FileManager.java +++ b/src/main/java/net/flectone/chat/manager/FileManager.java @@ -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() {