From 7395a268ef0db232727bf5509658182cb3088603 Mon Sep 17 00:00:00 2001 From: Melledy <52122272+Melledy@users.noreply.github.com> Date: Mon, 2 May 2022 16:31:05 -0700 Subject: [PATCH] Fix mail not sending to offline players --- src/main/java/emu/grasscutter/game/mail/MailHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/emu/grasscutter/game/mail/MailHandler.java b/src/main/java/emu/grasscutter/game/mail/MailHandler.java index 9d7839fb5..ad2f84694 100644 --- a/src/main/java/emu/grasscutter/game/mail/MailHandler.java +++ b/src/main/java/emu/grasscutter/game/mail/MailHandler.java @@ -37,6 +37,7 @@ public class MailHandler { if(event.isCanceled()) return; message = event.getMessage(); message.setOwnerUid(this.getPlayer().getUid()); + message.save(); this.mail.add(message);