A

man, who was cooking hash oil March 4 when the butane-fueled concoction exploded on his stove, has pleaded guilty to two felony charges.

Court records show Bernard Heflin,

including manufacture and possession of a controlled substance, first-degree child neglect, fourth-degree assault and recklessly endangering another, resolved the case Monday with a plea.

Heflin pleaded guilty to first-degree child neglect and possession of a controlled substance, according to the

. The remaining charges were dismissed.

Kirsten Thompson sentenced him to three years of probation and ordered him to undergo a drug evaluation and treatment, the district attorney's office said.

The case stems from an incident in which police responded to a neighbor's report March 4 of a man running up and down the street, screaming that he had burned himself.

When police arrived to the scene on C Street, they spotted Heflin with his hair burned, his goatee, eyebrows and lashes singed.

Heflin, 22, told them he was using the highly flammable substance butane to make hash oil, a concentrated form of marijuana, court records say.

Two women and two children, ages 20 months and 10 days, were also in the home when the explosion occurred, police said. Heflin's girlfriend and the two children were in a bedroom that shares a wall with the kitchen at the time, according to court records. The other woman was in the hallway to the kitchen.

A restitution hearing has been set in June.