Skip to content

Commit

Permalink
fix(core): use of reset color in component parser (#378)
Browse files Browse the repository at this point in the history
Fixes #377
  • Loading branch information
diogotcorreia authored Jan 19, 2024
1 parent 43ad52d commit f94cd92
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ private List<BaseComponent> toBaseComponent(String text) {
continue;
}
ChatColor previousColor = ComponentUtils.getColorFromBaseComponent(component);
if (previousColor == ChatColor.RESET) {
previousColor = null;
}
if (builder.length() != 0) {
component.setText(builder.toString());
builder = new StringBuilder();
Expand Down

0 comments on commit f94cd92

Please sign in to comment.