Skip to content

Commit

Permalink
Get rid of unnecessary casts in title message dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
rchomczyk committed Nov 25, 2024
1 parent 0376272 commit 492645e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public TitleMessageDispatcher<Audience, Component> subtitle(
public TitleMessageDispatcher<Audience, Component> placeholders(
final UnaryOperator<MessageRenderer<Component>> consumer) {
return new AdventureTitleMessageDispatcher(
(MessageDispatcher<Audience, Component>) times.placeholders(consumer),
(MessageDispatcher<Audience, Component>) title.placeholders(consumer),
(MessageDispatcher<Audience, Component>) subtitle.placeholders(consumer),
times.placeholders(consumer),
title.placeholders(consumer),
subtitle.placeholders(consumer),
viewer);
}

Expand Down

0 comments on commit 492645e

Please sign in to comment.