mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 02:45:17 +00:00
Fix performance issue when player had no mailbox
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user