diff --git a/build.gradle b/build.gradle index d9f616ca9..972b1cf38 100644 --- a/build.gradle +++ b/build.gradle @@ -194,4 +194,8 @@ javadoc { if(JavaVersion.current().isJava9Compatible()) { options.addBooleanOption('html5', true) } +} + +processResources { + dependsOn "generateProto" } \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/game/GenshinPlayer.java b/src/main/java/emu/grasscutter/game/GenshinPlayer.java index 161ee9b2f..7fdd7cb3b 100644 --- a/src/main/java/emu/grasscutter/game/GenshinPlayer.java +++ b/src/main/java/emu/grasscutter/game/GenshinPlayer.java @@ -609,7 +609,6 @@ public class GenshinPlayer { this.save(); Grasscutter.getLogger().info("Mail sent to user [" + this.getUid() + ":" + this.getNickname() + "]!"); if(this.isOnline()) { - Grasscutter.getLogger().info("user online."); this.sendPacket(new PacketMailChangeNotify(this, message)); } // TODO: setup a way for the mail notification to show up when someone receives mail when they were offline } diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java index 8033ed0ad..1185a0df5 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllMailRsp.java @@ -41,11 +41,8 @@ public class PacketGetAllMailRsp extends GenshinPacket { for (Mail message : player.getAllMail()) { if(message.stateValue == 1) { // Make sure it isn't a gift - Grasscutter.getLogger().info("a"); if (message.expireTime > (int) Instant.now().getEpochSecond()) { // Make sure the message isn't expired (The game won't show expired mail, but I don't want to send unnecessary information). - Grasscutter.getLogger().info("b"); if(mailDataList.size() <= 1000) { // Make sure that there isn't over 1000 messages in the mailbox. (idk what will happen if there is but the game probably won't like it.) - Grasscutter.getLogger().info("c"); MailTextContent.Builder mailTextContent = MailTextContent.newBuilder(); mailTextContent.setTitle(message.mailContent.title); mailTextContent.setContent(message.mailContent.content);