From 2911e5b1aaa9babf2d8b160fa9cf926885b7225f Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Fri, 16 Sep 2022 07:58:24 +0200 Subject: [PATCH] more comments and no linkterminator for linkselfinchatfeature --- PlayerTags/Features/LinkSelfInChatFeature.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/PlayerTags/Features/LinkSelfInChatFeature.cs b/PlayerTags/Features/LinkSelfInChatFeature.cs index 85d0292..07cec5c 100644 --- a/PlayerTags/Features/LinkSelfInChatFeature.cs +++ b/PlayerTags/Features/LinkSelfInChatFeature.cs @@ -114,10 +114,14 @@ namespace PlayerTags.Features // Add the Link Terminator to end the Player Link. This should be done behind the Text Payload (display text). // Normally used to end PlayerPayload linking. But for the own player it has no affect. Anyway, use it, just because. Maybe it's needed in the future somewhere else. - seString.Payloads.Insert(++playerPayloadIndex, RawPayload.LinkTerminator); + //seString.Payloads.Insert(++playerPayloadIndex, RawPayload.LinkTerminator); - // The PlayerPayload is just temporary. We keep the TextPayload. - // The PayerPayload gets removed at the ChatTagTargetFeature at the end. + // Remove TextPayload + //seString.Payloads.Remove(playerTextPayload); + + // I M P O R T A N T N O T I C E: + // The PlayerPayload is now just temporary. We keep the TextPayload don't add the LinkTerminator. + // The PayerPayload gets removed at the ChatTagTargetFeature at the end and the TextPayload will be keeped there. } } }