mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-10-25 20:22:23 +00:00
Add lighting to the attrib matrix to fix lighting disabled bug (#337)
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user