Fix performance issue when player had no mailbox

This commit is contained in:
mezz committed 2015-06-06 23:15:31 -07:00
1 parent 1249ccf983
commit fe84d52c38
1 file changed
+1 -1
@@ -109,7 +109,7 @@ public class PacketHandlerMail implements IPacketHandler {
private static void onPOBoxInfoRequest(EntityPlayer player) {
MailAddress address = new MailAddress(player.getGameProfile());
POBox pobox = PostRegistry.getPOBox(player.worldObj, address);
POBox pobox = PostRegistry.getOrCreatePOBox(player.worldObj, address);
if (pobox == null) {
return;
}