@@ -41,11 +41,8 @@ public class PacketGetAllMailRsp extends GenshinPacket {
...
@@ -41,11 +41,8 @@ public class PacketGetAllMailRsp extends GenshinPacket {
for(Mailmessage:player.getAllMail()){
for(Mailmessage:player.getAllMail()){
if(message.stateValue==1){// Make sure it isn't a gift
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).
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.)
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.)