From 0e3aeb00517b39e206fef062cb367170d4a05d8d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sat, 27 Sep 2014 14:16:39 +1000 Subject: [PATCH] Fixed weird lighting when chests are placed near banners. Props to Tahg for picking this one up (and finding the fix!). --- .../cpw/mods/ironchest/client/TileEntityIronChestRenderer.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java b/src/main/java/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java index e2ca52d..a28bacd 100755 --- a/src/main/java/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java +++ b/src/main/java/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java @@ -106,7 +106,6 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer bindTexture(locations.get(type)); glPushMatrix(); - glEnable(32826 /* GL_RESCALE_NORMAL_EXT */); glColor4f(1.0F, 1.0F, 1.0F, 1.0F); glTranslatef((float) x, (float) y + 1.0F, (float) z + 1.0F); glScalef(1.0F, -1F, -1F); @@ -132,7 +131,6 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer model.chestLid.rotateAngleX = -((lidangle * 3.141593F) / 2.0F); // Render the chest itself model.renderAll(); - glDisable(32826 /* GL_RESCALE_NORMAL_EXT */); glPopMatrix(); glColor4f(1.0F, 1.0F, 1.0F, 1.0F); if (type.isTransparent() && tile.getDistanceSq(this.rendererDispatcher.field_147560_j, this.rendererDispatcher.field_147561_k, this.rendererDispatcher.field_147558_l) < 128d) {