Skip to content

Commit e8d9d1d

Browse files
authored
Merge pull request #1337 from kermandev/fix/playerobject-bounds
fix(api): Unbound profileProperties Collection
2 parents 1fbe17e + 501d686 commit e8d9d1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/main/java/net/kyori/adventure/text/object/PlayerHeadObjectContents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ sealed interface Builder permits PlayerHeadObjectContentsImpl.BuilderImpl {
211211
* @since 4.25.0
212212
*/
213213
@Contract(value = "_ -> this")
214-
Builder profileProperties(final Collection<ProfileProperty> properties);
214+
Builder profileProperties(final Collection<? extends ProfileProperty> properties);
215215

216216
/**
217217
* Sets the skin (name, id, properties, and texture) from the given source, overriding any existing values.

api/src/main/java/net/kyori/adventure/text/object/PlayerHeadObjectContentsImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public Builder profileProperty(final ProfileProperty property) {
7979
}
8080

8181
@Override
82-
public Builder profileProperties(final Collection<ProfileProperty> properties) {
82+
public Builder profileProperties(final Collection<? extends ProfileProperty> properties) {
8383
for (final ProfileProperty property : requireNonNull(properties, "properties")) {
8484
this.profileProperty(property);
8585
}

0 commit comments

Comments
 (0)