Fixed piston rotation

This commit is contained in:
Robert S 2014-09-09 11:26:59 -04:00
parent 863f3b8648
commit 38a7a12fc5

View file

@ -33,10 +33,14 @@ public class RenderMechanicalPiston extends TileEntitySpecialRenderer
if (tile.worldObj != null)
{
if (tile.getDirection() != ForgeDirection.UP && tile.getDirection() != ForgeDirection.DOWN)
if (tile.getDirection() == ForgeDirection.NORTH || tile.getDirection() == ForgeDirection.SOUTH)
{
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection().getOpposite());
}
else
{
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection());
}
}
RenderUtility.bind(TEXTURE);