Fix #411 Trade Station does not show its name in the GUI

This commit is contained in:
mezz committed 2014-12-28 12:56:31 -08:00
1 parent daa3ab13be
commit 0d1d8295b4
5 files changed
+31 -26

No files matched your search

@@ -158,9 +158,9 @@ public class ContainerLetter extends ContainerItemInventory {
GameProfile gameProfile = MinecraftServer.getServer().func_152358_ax().func_152655_a(recipientName);
if (gameProfile == null)
gameProfile = new GameProfile(new UUID(0, 0), recipientName);
recipient = PostManager.postRegistry.getValidMailAddress(player.worldObj, gameProfile);
recipient = PostManager.postRegistry.getMailAddress(gameProfile);
} else if (type == EnumAddressee.TRADER) {
recipient = PostManager.postRegistry.getValidMailAddress(player.worldObj, recipientName);
recipient = PostManager.postRegistry.getMailAddress(recipientName);
} else {
return;
}