US actor Ezra Miller has pleaded guilty to unlawfully trespassing at a neighbour’s house, as part of a plea deal to avoid going to prison.
The Fantastic Beasts and Justice League star had faced a trial and possible jail time for a burglary charge, which has now been dropped.
Miller, 30, appeared in court in Bennington, Vermont, on Friday.
The star will now be on probation for a year, must pay a $500 (£410) fine and must give up alcohol.
Miller, who uses they/them pronouns, will also have to do random drug tests and continue seeking mental health treatment.
They were accused of breaking into a house near where they lived and stealing bottles of alcohol from the kitchen last May.
The actor, who plays the Flash in DC Comics films, originally pleaded not guilty to burglary and larceny as well as trespassing, but the former two charges have been dropped in exchange for a guilty plea to the latter.
In a statement, Miller’s lawyer told US media: “Ezra Miller pled guilty this morning to a misdemeanour unlawful trespass in Vermont Superior Court and accepted the conditions imposed by the court.
“Ezra would like to thank the court and the community for their trust and patience throughout this process, and would once again like to acknowledge the love and support they have received from their family and friends, who continue to be a vital presence in their ongoing mental health.”
The actor has been involved in a string of high-profile incidents and controversies, including being arrested twice in Hawaii in 2022.
They were later charged with disorderly conduct and harassment and second-degree assault.
They pled no contest to the assault charge and paid a $500 (£442) fine and $30 (£26) in court costs. The harassment charge was later dismissed.
The actor is still set to star in Warner Bros’ The Flash, the superhero’s first solo film, which is due to come out later this year.