Skip to content

Commit

Permalink
fix: titles and subtitles not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Jun 25, 2023
1 parent c8c7b8f commit f23ffc2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -572,8 +572,8 @@ public void run() {

asAudience(player).showTitle(
Title.title(
title == null ? (previousTitle == null ? Component.empty() : previousTitle) : (previousTitle = get(title, placeholders)),
subtitle == null ? (previousSubtitle == null ? Component.empty() : previousSubtitle) : (previousSubtitle = get(subtitle, placeholders)),
title == null ? (previousTitle == null ? Component.empty() : previousTitle) : (previousTitle = translate(title, placeholders)),
subtitle == null ? (previousSubtitle == null ? Component.empty() : previousSubtitle) : (previousSubtitle = translate(subtitle, placeholders)),
Title.Times.times(
Duration.ofMillis(titleInfo[0] * 50L),
Duration.ofMillis((titleInfo[1] - current) * 50L),
Expand Down

0 comments on commit f23ffc2

Please sign in to comment.