Skip to content

Commit

Permalink
always set display name
Browse files Browse the repository at this point in the history
we need to propagate display name removals as well
  • Loading branch information
jpenilla committed Apr 24, 2023
1 parent bf2ac40 commit 7123742
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ public final class CarbonPlayerPaper extends WrappedCarbonPlayer implements Forw
public CarbonPlayerPaper(final CarbonPlayerCommon carbonPlayerCommon) {
this.carbonPlayerCommon = carbonPlayerCommon;

if (this.hasCustomDisplayName()) {
this.player().ifPresent(this.applyDisplayNameToBukkit(carbonPlayerCommon.displayName()));
}
this.player().ifPresent(this.applyDisplayNameToBukkit(carbonPlayerCommon.displayName()));
}

private Optional<Player> player() {
Expand Down

0 comments on commit 7123742

Please sign in to comment.