Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package meteordevelopment.meteorclient.systems.hud.elements;

import meteordevelopment.meteorclient.renderer.text.TextRenderer;
import meteordevelopment.meteorclient.renderer.text.VanillaTextRenderer;
import meteordevelopment.meteorclient.settings.*;
import meteordevelopment.meteorclient.systems.hud.Hud;
import meteordevelopment.meteorclient.systems.hud.HudElement;
Expand Down Expand Up @@ -153,7 +154,9 @@ public void render(HudRenderer renderer) {
double armorX, armorY;

boolean durabilityText = durability.get() != Durability.Bar && durability.get() != Durability.None;
TextRenderer textRenderer = TextRenderer.get();
// The custom font draws its mesh at end(), before the gui renderer draws the queued items, so its text would sit
// under the armor icons. Vanilla text is queued with them and drawn on top, like the vanilla stack count.
TextRenderer textRenderer = VanillaTextRenderer.INSTANCE;
if (durabilityText) textRenderer.begin(renderer.graphics, Hud.get().getTextScale());

for (int position = 0; position < 4; position++) {
Expand Down
Loading