Skip to content

Commit

Permalink
fix notification do nothing (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc authored Jul 22, 2024
1 parent 565d12a commit 0da524d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0da524d

Please sign in to comment.