Skip to content

Commit

Permalink
Fix: force that custom name is visible for top donors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Nov 3, 2023
1 parent f3ce901 commit ef40cd5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private void applyToEntity(Entity entity, @Nullable String minecraftName, Compon
Component suffix = Component.literal(" - ").withStyle(ChatFormatting.GRAY)
.append(Component.literal(String.format("$%.2f", total)).withStyle(ChatFormatting.GREEN));
data.putString("NameSuffix", Component.Serializer.toJson(suffix));
data.putBoolean("CustomNameVisible", true);
entity.load(data);
}

Expand Down

0 comments on commit ef40cd5

Please sign in to comment.