Skip to content

Commit

Permalink
Fix wrong recipe tooltip background rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Jul 17, 2023
1 parent e383c39 commit 092f572
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/codechicken/nei/ItemsGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ private void drawRecipeTooltip(int mousex, int mousey, List<String> itemTooltip)
} else {
gui = null;
}
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
RenderHelper.disableStandardItemLighting();
recipeTooltipGui.drawGuiContainerBackgroundLayer(0.0f, -100, -100);
GL11.glPopAttrib();
if (recipeTooltipGui.slotcontainer != null) {
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
RenderHelper.enableGUIStandardItemLighting();
Expand Down

0 comments on commit 092f572

Please sign in to comment.