Skip to content

Commit

Permalink
Still display subtitles when titles are null
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Oct 12, 2017
1 parent ed9c98c commit b3329db
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -342,6 +342,10 @@ public void sendResourcePack(String url) {


@Override @Override
public void sendTitle(String title, String subtitle, int fadein, int stay, int fadeout) { public void sendTitle(String title, String subtitle, int fadein, int stay, int fadeout) {
if(title == null) {
// If the title is null the subtitle won't be displayed. This is unintuitive.
title = "";
}
try { try {
p.sendTitle(title, subtitle, fadein, stay, fadeout); p.sendTitle(title, subtitle, fadein, stay, fadeout);
} catch(NoSuchMethodError ex1){ } catch(NoSuchMethodError ex1){
Expand Down

0 comments on commit b3329db

Please sign in to comment.