Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem









[HarmonyPatch(typeof(LetterStack), "ReceiveLetter", new Type[] { typeof(Letter), typeof(string), typeof(int), typeof(bool) })]
public static class LetterStack_ReceiveLetter_ReorderPatch
{
[HarmonyPostfix]
public static void Postfix(Letter let, int delayTicks, ref List<Letter> ___letters)
{
// ignore delayed letters or nulls
if (delayTicks > 0 || let == null || !let.CanShowInLetterStack)
return;
try
{
// remove and re-prepend to move the new letter to the front of the list
if (___letters != null && ___letters.Remove(let))
{
___letters = ___letters.Prepend(let).ToList();
}
}
catch (Exception ex)
{
Log.Error($"[Post Office] Error reordering letters: {ex}");
}
}
Any chance someone is motivated enough to update this for 1.6?