Skip to content

Commit a4f8476

Browse files
committed
Fixed Creative Tabs rendering incorrectly
1 parent 149c859 commit a4f8476

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/clashsoft/playerinventoryapi/client/gui/GuiCreativeInventory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,11 @@ protected void drawCreativeTab(CreativeTabs tab)
508508
int k = 0;
509509
int x = this.guiLeft + 28 * i;
510510
int y = this.guiTop;
511-
byte b0 = 32;
512-
513511
this.mc.getTextureManager().bindTexture(background);
514512

515513
if (flag)
516514
{
517-
k += 32;
515+
k = 32;
518516
}
519517

520518
if (i == 5)
@@ -538,7 +536,8 @@ else if (i > 0)
538536

539537
GL11.glDisable(GL11.GL_LIGHTING);
540538
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
541-
this.drawTexturedModalRect(x, y, j, k, 28, b0);
539+
GL11.glEnable(GL11.GL_BLEND);
540+
this.drawTexturedModalRect(x, y, j, k, 28, 32);
542541

543542
x += 6;
544543
y += 8 + (flag1 ? 1 : -1);

0 commit comments

Comments
 (0)