Fix label markup escapeing (#40600)

fix
This commit is contained in:
beck-thompson
2025-09-28 11:33:11 -07:00
committed by GitHub
parent 9932c2eed5
commit 974759ba79

View File

@@ -54,7 +54,7 @@ public sealed partial class LabelSystem : EntitySystem
{ {
label ??= EnsureComp<LabelComponent>(uid); label ??= EnsureComp<LabelComponent>(uid);
label.CurrentLabel = text; label.CurrentLabel = text == null ? null : FormattedMessage.EscapeText(text);
_nameModifier.RefreshNameModifiers(uid); _nameModifier.RefreshNameModifiers(uid);
Dirty(uid, label); Dirty(uid, label);