There's good news and bad news for Robert Downey Jr.

ABC News reports that a judge has allowed the actor to continue his treatment for drug addiction as an outpatient.Downey's 180-day sentence for drug possession was to be served half in jail and half at a rehabilitation center. Now, he may leave that center.

The bad news is that the judge refused to make more concessions that would make it easier for Downey to work in films. As of now, ABC reports, a violation of his probation would land Downey back in jail. And that means he can't be insured for movie work.

At Friday's hearing, Municipal Court Judge Lawrence Mira made it clear to Downey what's in store if he breaks his probation deal. "I want you to understand that if you're back on a serious violation, that you're gonna be in prison."