Add lighting to the attrib matrix to fix lighting disabled bug (#337)

This commit is contained in:
firenoo authored and GitHub committed 2023-06-11 13:46:59 +02:00
1 parent f271fb50b3
commit 76bd7dd879
1 file changed
+1 -1
@@ -55,7 +55,7 @@ public class ItemEncodedPatternRenderer implements IItemRenderer {
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();