From e575534b6fa722773e5e0240c42a1df5aa76cda0 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 20 Jul 2023 17:10:57 +0700 Subject: [PATCH] fix the mail owo owowo owowo --- .../chipmunk/chayapak/chomens_bot/commands/MailCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MailCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MailCommand.java index 7f3db71..0c7ad6d 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MailCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MailCommand.java @@ -154,7 +154,11 @@ public class MailCommand extends Command { senderMailSize++; } - if (senderMailSize == 0) context.sendOutput(Component.text("You have no new mails").color(NamedTextColor.RED)); + if (senderMailSize == 0) { + context.sendOutput(Component.text("You have no new mails").color(NamedTextColor.RED)); + + return; + } final List mailsComponent = new ArrayList<>();