fix: correct order of CreateItemLink payloads

This commit is contained in:
Haselnussbomber 2023-08-01 20:40:42 +02:00
parent e47bfc7aca
commit dd845a30f0

View file

@ -210,10 +210,10 @@ public class SeString
// Note: `SeStringBuilder.AddItemLink` uses this function, so don't call it here! // Note: `SeStringBuilder.AddItemLink` uses this function, so don't call it here!
return new SeStringBuilder() return new SeStringBuilder()
.Add(new ItemPayload(itemId, kind))
.Append(TextArrowPayloads)
.AddUiForeground(textColor) .AddUiForeground(textColor)
.AddUiGlow(textGlowColor) .AddUiGlow(textGlowColor)
.Add(new ItemPayload(itemId, kind))
.Append(TextArrowPayloads)
.AddText(displayName) .AddText(displayName)
.AddUiGlowOff() .AddUiGlowOff()
.AddUiForegroundOff() .AddUiForegroundOff()