Fix game string lookup for intl clients

This commit is contained in:
Liza 2024-11-23 14:34:18 +01:00
parent ecf759121f
commit 2d214b1338
Signed by: liza
GPG Key ID: 8DD6D21C03BB0848

View File

@ -121,7 +121,7 @@ public static class DataManagerExtensions
return string.Join("", text.Select(payload => return string.Join("", text.Select(payload =>
{ {
if (payload.Type == ReadOnlySePayloadType.Text) if (payload.Type == ReadOnlySePayloadType.Text)
return Regex.Escape(payload.ToString()); return payload.ToString();
else if (payload is { Type: ReadOnlySePayloadType.Macro, MacroCode: MacroCode.NewLine }) else if (payload is { Type: ReadOnlySePayloadType.Macro, MacroCode: MacroCode.NewLine })
return ""; return "";
else else