Baby father issues

I don’t know why i feel like this, my baby father and i had a rough relationship during my pregnancy and after. She’s 1 and he was barely in her life until now, so i thought i was over him. But he just came to see her and i started feeling things, like i wanted him to hug me and just embrace me. and it’s making me angry because he didn’t treat me well and i’m aware of it so why do i feel like this?? It’s made me feel so down because i don’t know why i have these feelings. Like i wanted him, but im well aware of how he treated me, but he’s doing better for himself and seeing that idk makes me feel a way, im happy that he’s doing better but i wish he done better when we were together. I just want him to be consistent with my daughter. Please give some advice i feel like i’m going crazy with all the thoughts in my head 😭😭