mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +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
@@ -21,7 +21,7 @@ import forestry.core.proxy.Proxies;
|
||||
import forestry.core.utils.SlotUtil;
|
||||
import forestry.mail.POBox;
|
||||
import forestry.mail.POBoxInfo;
|
||||
import forestry.mail.network.packets.PacketPOBoxInfoResponse;
|
||||
import forestry.mail.network.packets.PacketPOBoxInfoUpdate;
|
||||
import forestry.mail.tiles.TileMailbox;
|
||||
|
||||
public class ContainerMailbox extends ContainerTile<TileMailbox> {
|
||||
@@ -55,7 +55,7 @@ public class ContainerMailbox extends ContainerTile<TileMailbox> {
|
||||
if (SlotUtil.isSlotInRange(slotIndex, SLOT_LETTERS, SLOT_LETTERS_COUNT)) {
|
||||
if (!player.worldObj.isRemote && mailInventory != null) {
|
||||
POBoxInfo info = mailInventory.getPOBoxInfo();
|
||||
Proxies.net.sendToPlayer(new PacketPOBoxInfoResponse(info), player);
|
||||
Proxies.net.sendToPlayer(new PacketPOBoxInfoUpdate(info), player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user