Fix Energy Cubes up/down render
This commit is contained in:
parent
1f59e441b8
commit
daeb09c7fd
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue