Fix #407 Crash after naming a new Trade Station

This commit is contained in:
mezz committed 2014-12-26 22:24:31 -08:00
1 parent 6346039f14
commit defbdc8e71
1 file changed
+2 -2
@@ -46,13 +46,13 @@ public class ContainerTradeName extends ContainerForestry {
PacketUpdate packet = new PacketUpdate(PacketIds.TRADING_ADDRESS_SET, payload);
Proxies.net.sendToServer(packet);
IMailAddress address = PostManager.postRegistry.getValidMailAddress(machine.getWorld(), addressName);
IMailAddress address = PostManager.postRegistry.getMailAddress(addressName);
machine.setAddress(address);
}
public void handleSetAddress(PacketUpdate packet) {
String addressName = packet.payload.stringPayload[0];
IMailAddress address = PostManager.postRegistry.getValidMailAddress(machine.getWorld(), addressName);
IMailAddress address = PostManager.postRegistry.getMailAddress(addressName);
machine.setAddress(address);
}