Skip to content

Commit

Permalink
Refactor skinParts initialization order
Browse files Browse the repository at this point in the history
Reordered the skinParts field initialization to comply with standard Java practice of placing final fields below non-final fields. This improves code readability and consistency across the class structure.
  • Loading branch information
NonSwag committed Jan 15, 2025
1 parent 9b4510e commit 8aaef56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@

@NullMarked
public class PaperPlayerCharacter extends PaperCharacter<Player> implements PlayerCharacter {
private SkinParts skinParts = new PaperSkinPartBuilder().build();
private boolean listed = false;
private boolean realPlayer = false;
private final CraftPlayerProfile profile;
private SkinParts skinParts = new PaperSkinPartBuilder().build();

public PaperPlayerCharacter(CharacterPlugin plugin, String name, UUID uuid) {
super(plugin, name, EntityType.PLAYER);
Expand Down

0 comments on commit 8aaef56

Please sign in to comment.