We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc311a commit 4062fe4Copy full SHA for 4062fe4
VModer.Core/Services/GameResource/Localization/LocalizationFormatService.cs
@@ -148,16 +148,10 @@ private TextFormatInfo GetColorText(LocalizationFormatInfo format)
148
149
if (localizationTextColorsService.TryGetColor(format.Text[0], out var colorInfo))
150
{
151
- if (!_colors.TryGetValue(format.Text[0], out var brush))
152
- {
153
- _colors.Add(format.Text[0], brush);
154
- }
155
- return new TextFormatInfo(format.Text[1..], brush);
+ return new TextFormatInfo(format.Text[1..], colorInfo.Color);
156
}
157
158
159
return new TextFormatInfo(format.Text, Color.Black);
160
161
-
162
- private readonly Dictionary<char, Color> _colors = [];
163
0 commit comments