Skip to content

Commit

Permalink
Fix item rendering in Nametags and Combat HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Jan 5, 2025
1 parent c0a3664 commit f33a21b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f33a21b

Please sign in to comment.