Man who sold ammunition to 1 October shooter in court for sentencing