Fix obelisk rendering in fast graphics

This commit is contained in:
tterrag1098 committed 2014-12-29 20:56:57 -05:00
1 parent d25e0977b9
commit e17c938814
1 file changed
+4 -2
@@ -22,7 +22,6 @@ import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
import crazypants.enderio.EnderIO;
import crazypants.enderio.machine.generator.combustion.TranslatedCubeRenderer;
import crazypants.render.BoundingBox;
import crazypants.render.CubeRenderer;
import crazypants.render.VertexTransform;
@@ -115,7 +114,10 @@ public class ObeliskRenderer<T extends TileEntity> extends TileEntitySpecialRend
glScalef(1.1f, 1.1f, 1.1f);
glTranslated(x + 0.5, y + 0.7, z + 0.5);
glDepthMask(true);
glRotatef(rand.nextFloat() * 360f, 0, 1, 0);
if (Minecraft.getMinecraft().gameSettings.fancyGraphics) {
glRotatef(rand.nextFloat() * 360f, 0, 1, 0);
}
RenderManager.instance.renderEntityWithPosYaw(ei, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
glPopMatrix();