Fixed minor render bug
This commit is contained in:
parent
b96dfd8783
commit
c5b703a48f
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue