SAVANNAH, Ga. — Shia LaBeouf will spend the next year on probation after the “Transformers” actor pleaded guilty to a misdemeanor charge of obstruction stemming from a public outburst in Georgia.

LaBeouf appeared before a Recorder’s Court judge Thursday in Savannah, where he was arrested July 8 while staying in the area to film the movie “The Peanut Butter Falcon.”

Police said LaBeouf became aggressive and began shouting vulgarities in a downtown nightlife district after a bystander refused to give him a cigarette. LaBeouf also pleaded no contest Thursday to a charge of disorderly conduct.