Skip to content

Commit

Permalink
fix sidebar button text rendering under armor slots
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts committed Sep 29, 2023
1 parent b4479df commit 4f6d13c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ public void drawButton(Minecraft mc, int mx, int my) {
}

GlStateManager.pushMatrix();
GlStateManager.enableDepth();
GlStateManager.translate(0, 0, 500);
GlStateManager.enableBlend();
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
Expand All @@ -483,6 +484,7 @@ public void drawButton(Minecraft mc, int mx, int my) {
font.drawString(list.get(i), mx1, my1 + i * 10, 0xFFFFFFFF);
}
GlStateManager.color(1F, 1F, 1F, 1F);
GlStateManager.disableDepth();
GlStateManager.popMatrix();
}

Expand Down

0 comments on commit 4f6d13c

Please sign in to comment.