From b606f2b0b8d49391d4c14c63b941214c1656d1fa Mon Sep 17 00:00:00 2001 From: DesiCow <80271842+DesiCow@users.noreply.github.com> Date: Sun, 29 Jan 2023 06:29:02 +0530 Subject: [PATCH] Fix nametags distance color gradient #3235 --- .../meteorclient/systems/modules/render/Nametags.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Nametags.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Nametags.java index 3eb6c4bd68..50fff44629 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Nametags.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Nametags.java @@ -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); } }