@@ -23,8 +23,14 @@ class PlatformBroadcasterAdventureImpl implements PlatformBroadcaster {
23
23
private final Map <NoticeType , NoticePartAnnouncer <?>> announcers = new ImmutableBiMap .Builder <NoticeType , NoticePartAnnouncer <?>>()
24
24
.put (NoticeType .CHAT , this .text ((audience , message ) -> audience .sendMessage (message )))
25
25
.put (NoticeType .ACTION_BAR , this .text ((audience , message ) -> audience .sendActionBar (message )))
26
- .put (NoticeType .TITLE , this .text ((audience , title ) -> audience .sendTitlePart (TitlePart .TITLE , title )))
27
- .put (NoticeType .SUBTITLE , this .text ((audience , subtitle ) -> audience .sendTitlePart (TitlePart .SUBTITLE , subtitle )))
26
+ .put (NoticeType .TITLE , this .text ((audience , title ) -> {
27
+ audience .sendTitlePart (TitlePart .TITLE , title );
28
+ audience .sendTitlePart (TitlePart .SUBTITLE , Component .empty ());
29
+ }))
30
+ .put (NoticeType .SUBTITLE , this .text ((audience , subtitle ) -> {
31
+ audience .sendTitlePart (TitlePart .TITLE , Component .empty ());
32
+ audience .sendTitlePart (TitlePart .SUBTITLE , subtitle );
33
+ }))
28
34
.put (NoticeType .TITLE_TIMES , new TimesNoticePartAnnouncer ())
29
35
.put (NoticeType .TITLE_HIDE , (viewer , audience , input ) -> audience .clearTitle ())
30
36
.put (NoticeType .SOUND , new SoundNoticePartAnnouncer ())
0 commit comments