Skip to content

Commit

Permalink
Correct usage of varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 4, 2024
1 parent 4dde389 commit a2c602c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public Component getMessage(Message message, PlayerProfile playerProfile, Object
return getMessage(message, playerProfile, true, arguments);
}

public Component[] toComponents(Object[] ...objects) {
public Component[] toComponents(Object ...objects) {
return Stream.of(objects).map((object) -> toComponent(object)).toArray(Component[]::new);
}

Expand Down

0 comments on commit a2c602c

Please sign in to comment.