fix the mail owo owowo owowo

This commit is contained in:
Chayapak 2023-07-20 17:10:57 +07:00
parent c57a1b053c
commit e575534b6f

View file

@ -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<Component> mailsComponent = new ArrayList<>();