Move getPlayer from ProxyCommon to PlayerUtil

This commit is contained in:
mezz committed 2015-10-22 14:10:26 -07:00
1 parent 84968c6021
commit 02c25142cd
9 files changed
+41 -35

No files matched your search

@@ -32,6 +32,7 @@ import forestry.api.mail.ITradeStation;
import forestry.api.mail.PostManager;
import forestry.core.config.ForestryItem;
import forestry.core.proxy.Proxies;
import forestry.core.utils.PlayerUtil;
import forestry.mail.items.ItemLetter;
import forestry.mail.network.PacketPOBoxInfoResponse;
@@ -73,7 +74,7 @@ public class PostRegistry implements IPostRegistry {
pobox.markDirty();
cachedPOBoxes.put(address, pobox);
EntityPlayer player = Proxies.common.getPlayer(world, address.getPlayerProfile());
EntityPlayer player = PlayerUtil.getPlayer(world, address.getPlayerProfile());
if (player != null) {
Proxies.net.sendToPlayer(new PacketPOBoxInfoResponse(pobox.getPOBoxInfo()), player);
}