LinkSelfInChatFeature: fix right content of message gets chropped and replaced by name

This commit is contained in:
2022-09-05 17:50:05 +02:00
parent ae2f191c74
commit 59fc6d4bf6

View File

@@ -89,7 +89,7 @@ namespace PlayerTags.Features
seString.Payloads.Insert(textPayloadIndex, playerTextPayload);
// Remove from the chopped text from the original payload
textPayload.Text = textPayload.Text.Substring(0, playerName.Length);
textPayload.Text = textPayload.Text.Substring(playerName.Length);
textMatchIndex = textPayload.Text.IndexOf(playerName);
}