mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 10:34:53 +00:00
fixes for mail system.
This commit is contained in:
1 parent
8bcf3568fe
commit
ec05cdc2c1
25 files changed
+217
-182
No files matched your search
@@ -12,6 +12,7 @@ package forestry.mail;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
|
||||
import forestry.api.mail.MailAddress;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
|
||||
@@ -81,7 +82,8 @@ public class PacketHandlerMail implements IPacketHandler {
|
||||
}
|
||||
|
||||
private void onPOBoxInfo(PacketPOBoxInfo packet) {
|
||||
PluginMail.proxy.setPOBoxInfo(Proxies.common.getRenderWorld(), Proxies.common.getClientInstance().thePlayer.getGameProfile(), packet.poboxInfo);
|
||||
MailAddress address = new MailAddress(Proxies.common.getClientInstance().thePlayer.getGameProfile());
|
||||
PluginMail.proxy.setPOBoxInfo(Proxies.common.getRenderWorld(), address, packet.poboxInfo);
|
||||
}
|
||||
|
||||
private void onMonikerSet(EntityPlayer player, PacketUpdate packet) {
|
||||
@@ -106,7 +108,8 @@ public class PacketHandlerMail implements IPacketHandler {
|
||||
}
|
||||
|
||||
private void onPOBoxInfoRequest(EntityPlayer player) {
|
||||
POBox pobox = PostRegistry.getPOBox(player.worldObj, player.getGameProfile());
|
||||
MailAddress address = new MailAddress(player.getGameProfile());
|
||||
POBox pobox = PostRegistry.getPOBox(player.worldObj, address);
|
||||
if (pobox == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user