Fix two issues with ReplacementAccentSystem (#27866)

This commit is contained in:
Tayrtahn
2024-05-09 21:31:31 -04:00
committed by GitHub
parent 0e3a2b3ba1
commit 0d0d46e01f

View File

@@ -89,8 +89,8 @@ namespace Content.Server.Speech.EntitySystems
// In-place replace the match with the transformed capitalization replacement
message = message.Remove(match.Index, match.Length).Insert(match.Index, replacement);
string mask = new string('_', match.Length);
maskMessage = message.Remove(match.Index, match.Length).Insert(match.Index, mask);
var mask = new string('_', replacement.Length);
maskMessage = maskMessage.Remove(match.Index, match.Length).Insert(match.Index, mask);
}
}