I had to make this ticket a second time because it got closed for "Duplicate" even though I couldn't find a single fix for this issue with only one person on the server so I'm just making it again.
My friend is unable to hit any mob on the server. They're still hurt by hostiles, but can't hit back. We both have the same mods installed, with the correct Forge version. My game runs just fine, it's just that theirs isn't. They're opped, with PVP and animals on. I don't know why it's only happening with them.
Forge version 1.19.3 (44.1.5)
Mods installed:
JourneyMap, Easy Villagers