This commit is contained in:
Ben Spiers 2015-03-22 14:58:27 +00:00
parent e18cf2dd4a
commit dfefcaf69a

View file

@ -32,26 +32,29 @@ public class RenderLaser extends TileEntitySpecialRenderer
switch(tileEntity.facing)
{
case 0:
case 0:
GL11.glTranslatef(0.0F, -2.0F, 0.0F);
GL11.glRotatef(180F, 1.0F, 0.0F, 0.0F);
break;
case 5:
case 5:
GL11.glTranslatef(0.0F, -1.0F, 0.0F);
GL11.glTranslatef(1.0F, 0.0F, 0.0F);
GL11.glRotatef(90F, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(90, 0.0F, 0.0F, -1.0F);
break;
case 4:
case 4:
GL11.glTranslatef(0.0F, -1.0F, 0.0F);
GL11.glTranslatef(-1.0F, 0.0F, 0.0F);
GL11.glRotatef(90, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90F, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(90, 0.0F, 0.0F, 1.0F);
break;
case 2:
case 2:
GL11.glTranslatef(0.0F, -1.0F, 0.0F);
GL11.glTranslatef(0.0F, 0.0F, -1.0F);
GL11.glRotatef(90, -1.0F, 0.0F, 0.0F);
GL11.glRotatef(90, -1.0F, 0.0F, 0.0F);
GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
break;
case 3:
case 3:
GL11.glTranslatef(0.0F, -1.0F, 0.0F);
GL11.glTranslatef(0.0F, 0.0F, 1.0F);
GL11.glRotatef(90, 1.0F, 0.0F, 0.0F);