mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Sync mail to client on login, do not display mail indicator on logout
This commit is contained in:
1 parent
d0c8c92863
commit
e2f32ab767
8 files changed
+31
-70
No files matched your search
@@ -30,7 +30,7 @@ import forestry.core.proxy.Proxies;
|
||||
import forestry.core.render.TextureManager;
|
||||
import forestry.core.utils.PlayerUtil;
|
||||
import forestry.core.utils.StringUtil;
|
||||
import forestry.mail.network.packets.PacketPOBoxInfoResponse;
|
||||
import forestry.mail.network.packets.PacketPOBoxInfoUpdate;
|
||||
|
||||
public class PostalCarrier implements IPostalCarrier {
|
||||
|
||||
@@ -88,7 +88,7 @@ public class PostalCarrier implements IPostalCarrier {
|
||||
} else {
|
||||
EntityPlayer player = PlayerUtil.getPlayer(world, recipient.getPlayerProfile());
|
||||
if (player instanceof EntityPlayerMP) {
|
||||
Proxies.net.sendToPlayer(new PacketPOBoxInfoResponse(pobox.getPOBoxInfo()), (EntityPlayerMP) player);
|
||||
Proxies.net.sendToPlayer(new PacketPOBoxInfoUpdate(pobox.getPOBoxInfo()), (EntityPlayerMP) player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user