File tree Expand file tree Collapse file tree
paper-api/src/main/java/com/destroystokyo/paper/profile Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments