A man cracked the windscreen of a takeaway owner's car after a heavy drinking session and after being refused to be served with chips.
Matthew Jones, 26, who had been drinking since 9am, later said it was lucky the car had been punched and not the takeaway owner, Chantel Lowery Green, prosecuting, told Barnsley Magistrates' Court.
She said Jones, of York Street, Hoyland, had banged on the takeaway's counter and shouted abuse when the police were called.
Eric Bray, defending, said Jones accepted he had been out of order.
Mr Bray said: "Mr Jones was very drunk. He had been drinking because he had split up with his girlfriend the previous evening."
Jones, who admitted criminal damage, was ordered to pay £200 in compensation, a £60 victim surcharge and ordered to undergo 12 months of supervision.