From 08a3d37f987a9ad77a2b49770c6c67feee00cae1 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Wed, 21 Sep 2022 12:09:27 +0200 Subject: [PATCH] fix: falsly inserted own player name one index postion to low --- PlayerTags/Features/ChatTagTargetFeature.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlayerTags/Features/ChatTagTargetFeature.cs b/PlayerTags/Features/ChatTagTargetFeature.cs index c39be45..6cdebc6 100644 --- a/PlayerTags/Features/ChatTagTargetFeature.cs +++ b/PlayerTags/Features/ChatTagTargetFeature.cs @@ -251,7 +251,7 @@ namespace PlayerTags.Features if (textMatchIndex > 0) { // Add the content before the player - seString.Payloads.Insert(textPayloadIndex, new TextPayload(textPayload.Text.Substring(0, textMatchIndex))); + seString.Payloads.Insert(textPayloadIndex++, new TextPayload(textPayload.Text.Substring(0, textMatchIndex))); // Remove from the chopped text from the original payload textPayload.Text = textPayload.Text.Substring(textMatchIndex, textPayload.Text.Length - textMatchIndex);