Skip to content

Commit

Permalink
Fix #1523 Recipe transfer button texture issues with transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Mar 24, 2019
1 parent c90fe50 commit f129536
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -23,6 +23,7 @@ public GuiIconButtonSmall(int buttonId, int x, int y, int widthIn, int heightIn,
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) {
if (this.visible) {
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.enableAlpha();
this.hovered = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
int k = this.getHoverState(this.hovered);
GuiHelper guiHelper = Internal.getHelpers().getGuiHelper();
Expand All @@ -48,7 +49,6 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
double yOffset = y + (width - this.icon.getHeight()) / 2.0;
GlStateManager.pushMatrix();
GlStateManager.translate(xOffset, yOffset, 0);
GlStateManager.enableAlpha();
this.icon.draw(mc);
GlStateManager.popMatrix();
}
Expand Down

0 comments on commit f129536

Please sign in to comment.