Skip to content

Commit

Permalink
api: backport from main/5
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike committed Jul 3, 2022
1 parent 9200729 commit 40ed1df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ static SelectorComponent create(final @NotNull List<? extends ComponentLike> chi
ComponentLike.asComponents(children, IS_NOT_EMPTY),
requireNonNull(style, "style"),
requireNonNull(pattern, "pattern"),
separator
ComponentLike.unbox(separator)
);
}

SelectorComponentImpl(final @NotNull List<Component> children, final @NotNull Style style, final @NotNull String pattern, final @Nullable ComponentLike separator) {
SelectorComponentImpl(final @NotNull List<Component> children, final @NotNull Style style, final @NotNull String pattern, final @Nullable Component separator) {
super(children, style);
this.pattern = pattern;
this.separator = ComponentLike.unbox(separator);
this.separator = separator;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
final class StorageNBTComponentImpl extends NBTComponentImpl<StorageNBTComponent, StorageNBTComponent.Builder> implements StorageNBTComponent {
private final Key storage;

static StorageNBTComponent create(final @NotNull List<? extends ComponentLike> children, final @NotNull Style style, final String nbtPath, final boolean interpret, final @Nullable ComponentLike separator, final Key storage) {
static @NotNull StorageNBTComponent create(final @NotNull List<? extends ComponentLike> children, final @NotNull Style style, final String nbtPath, final boolean interpret, final @Nullable ComponentLike separator, final @NotNull Key storage) {
return new StorageNBTComponentImpl(
ComponentLike.asComponents(children, IS_NOT_EMPTY),
requireNonNull(style, "style"),
Expand Down

0 comments on commit 40ed1df

Please sign in to comment.