Skip to content

Commit

Permalink
Add missing argument into MethodHandle invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Mar 4, 2024
1 parent 5964a61 commit c36534b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ private void broadcastPacket(final int action) {
private void updateBarTitle(final BaseComponent[] message) {
try {
if (SET_TITLE_STRING != null) {
SET_TITLE_STRING.invoke(ComponentSerializer.toString(message));
SET_TITLE_STRING.invoke(this.bar, ComponentSerializer.toString(message));
} else {
SET_TITLE_COMPONENT.invoke(TextComponent.fromArray(message));
SET_TITLE_COMPONENT.invoke(this.bar, TextComponent.fromArray(message));
}
} catch (final Throwable throwable) {
logError(throwable, "Cannot update the BossBar title");
Expand Down

0 comments on commit c36534b

Please sign in to comment.