Skip to content

Commit

Permalink
Fix nametags distance color gradient MeteorDevelopment#3235
Browse files Browse the repository at this point in the history
  • Loading branch information
DesiCow authored Jan 29, 2023
1 parent 8cb27b1 commit 0aede10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private void renderNametagPlayer(PlayerEntity player, boolean shadow) {
if (displayDistance.get() && renderPlayerDistance) {
switch (distanceColorMode.get()) {
case Flat -> text.render(distText, hX, hY, distanceColor.get(), shadow);
case Gradient -> text.render(distText, hX, hY, EntityUtils.getColorFromDistance(mc.player), shadow);
case Gradient -> text.render(distText, hX, hY, EntityUtils.getColorFromDistance(player), shadow);
}
}

Expand Down

0 comments on commit 0aede10

Please sign in to comment.