The Hoglin mob attacks the player when stood too close to them. I've only noticed it to happen if one has already been killed and then the others become aggro. They don't charge, instead they passively stand in their aggro mode and when you get too close, they attack the player. It's not major but for peaceful mode, it can be frustrating if you don't want any aggressive mobs and end up still being attacked.
Steps to Reproduce:
- Set the difficulty to Peaceful
- Spawn 3 hoglins
- Kill 1 hoglin in Survival mode
- Move close to the 2 other hoglins
The hoglins attack the player.
The hoglins should not attack the player.