Shia LaBeouf
Shia LaBeouf ttends the “Borg/McEnroe” premiere at the Toronto International Film Festival on Sept. 7, 2017, in Toronto, Canada. Getty Images/Alberto E. Rodriguez

Shia LaBeouf has been given one-year probation after pleading guilty to misdemeanor charges in Savannah, Georgia in July.

According to the Associated Press, the actor appeared before a Reporter’s Court judge on Thursday. Three months ago, LaBeouf was in Georgia filming for his upcoming movie, “The Peanut Butter Falcon.” On July 8, the actor reportedly became aggressive and shouted at a bystander after he refused to give him a cigarette.

Police officers approached the actor, but he allegedly tried to run to a nearby hotel to escape arrest. In the footage released by TMZ, the actor is also seen telling an officer that he will go to hell “because he’s a black man.” He also accused the other police officers of being racist because a “black man” arrested him “for being white.”

On Thursday’s hearing, LaBeouf also pleaded no contest to disorderly conduct charges. Prosecutors decided to drop his initial public drunkenness charge.

As part of his plea deal, the “Transformers” star is required to attend anger management counseling, and he must also complete a drug and alcohol evaluation.

Following his arrest, LaBeouf apologized to his fans via a lengthy post on Twitter. The actor acknowledged the fact that what he did was wrong. He also said that he has been battling addiction publicly for a very long time and has been doing everything he can to become sober. “I hope I can be forgiven for my mistakes,” he wrote.

Meanwhile, seven months prior to his July arrest, LaBeouf was arrested in New York at the site of his art exhibit. According to People, LaBeouf assaulted an attendee who said, “Hitler did nothing wrong.” The charges filed against him at the time have been dropped.

His other arrests include a 2007 incident wherein he refused to leave a Chicago Walgreens; a 2008 DUI; a 2014 incident where he disrupted as “Cabaret” performance; a 2015 public intoxication episode in Austin, Texas; and an altercation earlier this year at the Donald Trump protest, according to Entertainment Weekly.