Fixed minor render bug

This commit is contained in:
Henry Mao 2013-01-09 21:21:03 +08:00
parent b96dfd8783
commit c5b703a48f

View file

@ -49,20 +49,18 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer
if (slantType != null && slantType != SlantType.NONE)
{
GL11.glTranslatef(0, -0.4f, 0);
GL11.glScalef(1f, 1.4f, 1f);
GL11.glTranslatef(0, -0.3f, 0);
GL11.glScalef(1f, 1.3f, 1.4f);
if (slantType == SlantType.UP)
{
if (face == 5 || face == 4)
{
GL11.glScalef(1.4f, 1f, 1f);
GL11.glTranslatef(0f, 0f, 1f);
GL11.glRotatef(-45f, 1f, 0f, 0f);
}
else if (face == 2 || face == 3)
{
GL11.glScalef(1f, 1f, 1.4f);
GL11.glTranslatef(0f, 0f, 1f);
GL11.glRotatef(-45f, 1f, 0f, 0f);
}
@ -71,13 +69,11 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer
{
if (face == 5 || face == 4)
{
GL11.glScalef(1.4f, 1f, 1f);
GL11.glTranslatef(0f, 0f, -1f);
GL11.glRotatef(45f, 1f, 0f, 0f);
}
else if (face == 2 || face == 3)
{
GL11.glScalef(1f, 1f, 1.4f);
GL11.glTranslatef(0f, 0f, -1f);
GL11.glRotatef(45f, 1f, 0f, 0f);
}