Hey there, HitBlackVein. I'm glad to hear things are going a little bit better for you, though I imagine the urge to keep hurting yourself despite that has got to be incredibly confusing.
Generally speaking, when people fall into a habitual cycle of self harm, it's usually because the act of inflicting that harm fulfills some sort of need that isn't otherwise being met. Some people do it because hurting themselves allows them to feel something when they're otherwise numb. Some have severe guilt issues, and the punishment of self harm helps them resolve or escape from those feelings. For some, it legitimately feels 'good' for some reason, and provides a tactile or emotional reward they can't get any other way. There's always a reason.
If you're still harming yourself despite being generally happier, then that act of harming yourself is doing something for you. It may be worth trying to figure out exactly what that something is. How exactly does hurting yourself make you feel happy? Why do you find it satisfying? If you can narrow down exactly what sort of need is being met by it, you can begin to try and find healthier alternatives to fulfill that need.