From bf1279249ad20ec5ba7afc34d223fe83a984d8b0 Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Sun, 27 Oct 2024 23:00:13 +0000 Subject: [PATCH 1/2] fix mail jobs not being localized --- Content.Server/Nyanotrasen/Mail/MailSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Nyanotrasen/Mail/MailSystem.cs b/Content.Server/Nyanotrasen/Mail/MailSystem.cs index c120c4d1960..744a5f96ffc 100644 --- a/Content.Server/Nyanotrasen/Mail/MailSystem.cs +++ b/Content.Server/Nyanotrasen/Mail/MailSystem.cs @@ -620,7 +620,7 @@ public bool TryGetMailRecipientForReceiver(MailReceiverComponent receiver, [NotN var mayReceivePriorityMail = !(_mindSystem.GetMind(receiver.Owner) == null); recipient = new MailRecipient(idCard.Comp.FullName, - idCard.Comp.JobTitle, + idCard.Comp.LocalizedJobTitle, idCard.Comp.JobIcon, accessTags, mayReceivePriorityMail); From 7f7f0184b89759518a07892d20514bd8f4d1f911 Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Mon, 28 Oct 2024 09:00:22 +0000 Subject: [PATCH 2/2] JobTitle is also nullable how did this die --- Content.Server/Nyanotrasen/Mail/MailSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Nyanotrasen/Mail/MailSystem.cs b/Content.Server/Nyanotrasen/Mail/MailSystem.cs index 744a5f96ffc..bc2045215c9 100644 --- a/Content.Server/Nyanotrasen/Mail/MailSystem.cs +++ b/Content.Server/Nyanotrasen/Mail/MailSystem.cs @@ -620,7 +620,7 @@ public bool TryGetMailRecipientForReceiver(MailReceiverComponent receiver, [NotN var mayReceivePriorityMail = !(_mindSystem.GetMind(receiver.Owner) == null); recipient = new MailRecipient(idCard.Comp.FullName, - idCard.Comp.LocalizedJobTitle, + idCard.Comp.LocalizedJobTitle ?? idCard.Comp.JobTitle, idCard.Comp.JobIcon, accessTags, mayReceivePriorityMail);