Skip to content

Commit

Permalink
Revert "fix level head background width"
Browse files Browse the repository at this point in the history
This reverts commit dffcda3.
  • Loading branch information
Wyvest committed Dec 24, 2023
1 parent 986ddbd commit fb98a7e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public abstract class AboveHeadRenderMixin {
private void polyNametag$drawFrontBackground(LevelheadTag tag, EntityPlayer player, double x, double y, double z, CallbackInfo ci) {
GlStateManager.enableDepth();
GlStateManager.depthMask(true);
int stringWidth = Minecraft.getMinecraft().fontRendererObj.getStringWidth(tag.getString()) / 2;
NametagRenderingKt.drawBackground(-stringWidth - 2, stringWidth + 1, 0xFF);
NametagRenderingKt.drawFrontBackgroundForText(tag.getString());
}
}

0 comments on commit fb98a7e

Please sign in to comment.