Skip to content

Commit dcf5577

Browse files
authored
Fix PlayerProfile applySkinToPlayerHeadContents (#13692)
1 parent c39822a commit dcf5577

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

paper-api/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,16 @@ default boolean hasTextures() {
257257

258258
@Override
259259
default void applySkinToPlayerHeadContents(final PlayerHeadObjectContents.Builder builder) {
260-
if (this.getProperties().isEmpty() && (this.getName() != null) != (this.getId() != null)) {
260+
if (this.getProperties().isEmpty()) {
261261
if (this.getId() != null) {
262262
builder.id(this.getId());
263-
} else {
263+
} else if (this.getName() != null) {
264264
builder.name(this.getName());
265265
}
266-
return;
266+
} else {
267+
builder.id(this.getId())
268+
.name(this.getName())
269+
.profileProperties(this.getProperties().stream().map(prop -> property(prop.getName(), prop.getValue(), prop.getSignature())).toList());
267270
}
268-
builder.id(this.getId())
269-
.name(this.getName())
270-
.profileProperties(this.getProperties().stream().map(prop -> property(prop.getName(), prop.getValue(), prop.getSignature())).toList());
271271
}
272272
}

0 commit comments

Comments
 (0)