¶1Following a bench trial, Derrick Byron was found guilty but mentally ill of voluntary manslaughter and sentenced to 20 years to serve 15. He appeals, arguing that the sentence was too harsh in light *573of his mental illness. Because the sentence was within the range allowed for this crime, we affirm.
¶2Construed in favor of the judgment, the evidence shows that in retaliation for a 12-year-old boy’s throwing an egg at him, 14-year-old Byron shot and killed the boy. Byron was indicted for murder, felony murder, and aggravated assault. At trial, expert testimony showed that Byron had a long history of mental illness but that he was aware of his actions. The court found him guilty but mentally ill of the lesser charge of voluntary manslaughter on the first two counts and acquitted him on the aggravated assault count.
¶3During the sentencing hearing, Byron put on expert testimony about alternative sentences for the mentally ill, urging that prison confinement would not suit his treatment needs. The record also showed, however, that during his three years in prison prior to sentencing, Byron had progressed substantially. In compliance with OCGA § 17-7-131 (g) (1), the court sentenced Byron in the same manner as a defendant found guilty of voluntary manslaughter, sentencing him to 20 years to serve 15 in confinement.
¶4Byron’s 20-year sentence was within the statutory limit for a conviction for voluntary manslaughter.
¶5Judgment affirmed.
¶6 See OCGA § 16-5-2 (b) (person convicted of voluntary manslaughter may be sentenced up to 20 years).
¶7 See OCGA § 17-7-131 (g) (2) (mentally-ill convict to receive mental-health treatment as psychiatrically indicated).
¶8 OCGA § 16-5-2 (b).
¶9Gooch v. State, 249 Ga. App. 643, 648 (6) (549 SE2d 724) (2001).
¶10Wilburn v. State, 223 Ga. App. 476, 477-478 (2) (477 SE2d 909) (1996).
¶11Snyder v. State, 201 Ga. App. 66, 70-71 (10) (410 SE2d 173) (1991).