use of forestry.mail.network.packets.PacketTraderAddressResponse in project ForestryMC by ForestryMC.
the class TileTrader method handleSetAddressRequest.
public void handleSetAddressRequest(String addressName) {
IMailAddress address = PostManager.postRegistry.getMailAddress(addressName);
setAddress(address);
IMailAddress newAddress = getAddress();
String newAddressName = newAddress.getName();
if (newAddressName.equals(addressName)) {
PacketTraderAddressResponse packetResponse = new PacketTraderAddressResponse(this, addressName);
NetworkUtil.sendNetworkPacket(packetResponse, pos, world);
}
}
Aggregations