Fix Energy Cubes up/down render

This commit is contained in:
Aidan Brady 2013-11-06 22:37:41 -05:00
parent 1f59e441b8
commit daeb09c7fd
2 changed files with 14 additions and 0 deletions

View file

@ -38,6 +38,14 @@ public class RenderEnergyCube extends TileEntitySpecialRenderer
switch(tileEntity.facing)
{
case 0:
GL11.glRotatef(90F, -1.0F, 0.0F, 0.0F);
GL11.glTranslatef(0.0F, 1.0F, -1.0F);
break;
case 1:
GL11.glRotatef(90F, 1.0F, 0.0F, 0.0F);
GL11.glTranslatef(0.0F, 1.0F, 1.0F);
break;
case 2: GL11.glRotatef(0, 0.0F, 1.0F, 0.0F); break;
case 3: GL11.glRotatef(180, 0.0F, 1.0F, 0.0F); break;
case 4: GL11.glRotatef(90, 0.0F, 1.0F, 0.0F); break;

View file

@ -196,6 +196,12 @@ public class TileEntityEnergyCube extends TileEntityElectricBlock implements IEn
return rejects;
}
@Override
public boolean canSetFacing(int side)
{
return true;
}
@Override
public boolean canReceiveEnergy(ForgeDirection side)
{