I don't know what I'm suppose to do

So me and my boyfriend live with his parents. His friend came over yesterday and we have not really had a conversation since then. I feel uncomfortable being back with my boyfriend and his friend. My boyfriend is only like this with the friend that came over yesterday. And I tried talking to him about it and he got mad. He isn't normally like this. And talking seems like it isn't helping. I really need some advice on what to do

TIA 💕