From 0da524dfb170aa04be74886442777f7108822aea Mon Sep 17 00:00:00 2001 From: xia__mc <108219418+xia-mc@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:00:47 +0800 Subject: [PATCH] fix notification do nothing (#675) --- .../java/keystrokesmod/module/impl/client/Notifications.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/keystrokesmod/module/impl/client/Notifications.java b/src/main/java/keystrokesmod/module/impl/client/Notifications.java index 7d676ec7..b96451e9 100644 --- a/src/main/java/keystrokesmod/module/impl/client/Notifications.java +++ b/src/main/java/keystrokesmod/module/impl/client/Notifications.java @@ -45,11 +45,11 @@ public static void sendNotification(NotificationTypes notificationType, String m coolDown.start(); AnimationUtils animationX = new AnimationUtils(sr.getScaledWidth()); animationX.setAnimation(sr.getScaledWidth(), 16); - new Notification(notificationType, + notifs.add(new Notification(notificationType, message, coolDown, animationX, new AnimationUtils(sr.getScaledHeight() - (notifs.size() * 30)) - ); + )); } else { Utils.sendMessage("&7[&1LI&7-" + ((notificationType == NotificationTypes.INFO) ? "&1" : notificationType == NotificationTypes.WARN ? "&e" : "&4") + notificationType.toString() + "&7]&r " + message); }