mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 11:19:28 +00:00
Move getPlayer from ProxyCommon to PlayerUtil
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user