From f33a21b174f812f04852ff3328187233a00f9316 Mon Sep 17 00:00:00 2001 From: MineGame159 Date: Sun, 5 Jan 2025 13:06:07 +0100 Subject: [PATCH] Fix item rendering in Nametags and Combat HUD --- .../meteorclient/systems/hud/elements/CombatHud.java | 2 +- .../meteorclient/systems/modules/render/Nametags.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/CombatHud.java b/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/CombatHud.java index f2b4d7be41..e2f4f990c6 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/CombatHud.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/hud/elements/CombatHud.java @@ -352,7 +352,7 @@ public void render(HudRenderer renderer) { ItemStack itemStack = getItem(slot); - renderer.item(itemStack, (int) (armorX * scale.get()), (int) (armorY * scale.get()), scale.get().floatValue(), true); + renderer.item(itemStack, (int) (armorX), (int) (armorY), 1, true); armorY += 18; 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 584f7800b3..95fa6dd4f8 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Nametags.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Nametags.java @@ -391,7 +391,7 @@ private double getHeight(Entity entity) { private void renderNametagPlayer(Render2DEvent event, PlayerEntity player, boolean shadow) { TextRenderer text = TextRenderer.get(); - NametagUtils.begin(pos, event.drawContext); + NametagUtils.begin(pos); // Gamemode GameMode gm = EntityUtils.getGameMode(player);