Skip to content

Commit

Permalink
Merge pull request #319 from UltraHex/1.12.2
Browse files Browse the repository at this point in the history
Fixes #170
  • Loading branch information
Electroblob77 committed Dec 16, 2019
2 parents 01cea3d + c7c6f96 commit 7a8cfb7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static void onRenderWorldLastEvent(RenderWorldLastEvent event){

GlStateManager.pushMatrix();
GlStateManager.enableBlend();
boolean lighting = GL11.glIsEnabled(GL11.GL_LIGHTING);
GlStateManager.disableLighting();
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240, 240);
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
Expand Down Expand Up @@ -82,7 +83,9 @@ public static void onRenderWorldLastEvent(RenderWorldLastEvent event){

GlStateManager.disableBlend();
GlStateManager.enableTexture2D();
GlStateManager.enableLighting();
if (lighting) {
GlStateManager.enableLighting();
}
GlStateManager.disableRescaleNormal();
GlStateManager.popMatrix();
}
Expand Down

0 comments on commit 7a8cfb7

Please sign in to comment.