mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Removed debug messages, readded protos, fixed gradle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user