Fix Tagging players and triggering a replacematcher not resetting chatcolor

This commit is contained in:
Len
2023-07-15 17:42:12 +02:00
parent 4b930e62c3
commit 9d7f944c88
3 changed files with 4 additions and 3 deletions
@@ -110,7 +110,7 @@ public class ChatFilter {
String group = matcher.group();
modifiableString.replace(TextReplacementConfig.builder()
.matchLiteral(group)
.replacement(group.substring(0, length))
.replacement(Component.text(group.substring(0, length), modifiableString.component().color()))
.build());
}
}