Skip to content

Commit

Permalink
Backport GH-477
Browse files Browse the repository at this point in the history
send times packet first
yes
  • Loading branch information
vytskalt authored and zml2008 committed Oct 31, 2021
1 parent e0dfbc7 commit 66b593d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/main/java/net/kyori/adventure/audience/Audience.java
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ default void sendPlayerListHeaderAndFooter(final @NotNull Component header, fina
*/
@ForwardingAudienceOverrideNotRequired
default void showTitle(final @NotNull Title title) {
this.sendTitlePart(TitlePart.TITLE, title.title());
this.sendTitlePart(TitlePart.SUBTITLE, title.subtitle());

final Title.Times times = title.times();
if (times != null) this.sendTitlePart(TitlePart.TIMES, times);

this.sendTitlePart(TitlePart.SUBTITLE, title.subtitle());
this.sendTitlePart(TitlePart.TITLE, title.title());
}

/**
Expand Down

0 comments on commit 66b593d

Please sign in to comment.