Skip to content

Commit

Permalink
Add lighting to the attrib matrix to fix lighting disabled bug (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
firenoo authored Jun 11, 2023
1 parent f271fb5 commit 76bd7dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void renderItem(final ItemRenderType type, final ItemStack item, final Ob
final ItemStack is = iep.getOutput(item);
final Minecraft mc = Minecraft.getMinecraft();

GL11.glPushAttrib(GL11.GL_ENABLE_BIT | GL11.GL_COLOR_BUFFER_BIT);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT | GL11.GL_COLOR_BUFFER_BIT | GL11.GL_LIGHTING_BIT);
RenderHelper.enableGUIStandardItemLighting();
this.ri.renderItemAndEffectIntoGUI(mc.fontRenderer, mc.getTextureManager(), is, 0, 0);
RenderHelper.disableStandardItemLighting();
Expand Down

0 comments on commit 76bd7dd

Please sign in to comment.