Skip to content

Commit

Permalink
Fix Title Colors being modified when getting a Message for an Advance…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
ZockerAxel committed May 17, 2022
1 parent 93fa16e commit 219b3d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public BaseComponent getMessage(Player player) {
title.addExtra(display.getTitle().getJson());
title.addExtra("]");
title.setColor(challenge ? ChatColor.DARK_PURPLE : ChatColor.GREEN);
BaseComponent titleTextComponent = display.getTitle().getJson();
TextComponent titleTextComponent = new TextComponent(display.getTitle().getJson());
titleTextComponent.setColor(title.getColor());
Text titleText = new Text(new BaseComponent[] {titleTextComponent});
Text descriptionText = new Text(new BaseComponent[] {display.getDescription().getJson()});
Expand Down

0 comments on commit 219b3d0

Please sign in to comment.