removed redundant wolf agro fix

This commit is contained in:
Jacob M 2026-03-11 17:29:03 -04:00
parent 4e3fec0d97
commit cc910b9b7b

View file

@ -286,7 +286,7 @@ bool Wolf::hurt(DamageSource *source, float dmg)
if (isTame()) if (isTame())
{ {
shared_ptr<Entity> entity = source->getDirectEntity(); shared_ptr<Entity> entity = source->getDirectEntity();
if (entity != nullptr && entity->instanceof(eTYPE_PLAYER) && !entity->isInvulnerable()) if (entity != nullptr && entity->instanceof(eTYPE_PLAYER))
{ {
shared_ptr<Player> attacker = dynamic_pointer_cast<Player>(entity); shared_ptr<Player> attacker = dynamic_pointer_cast<Player>(entity);
attacker->canHarmPlayer(getOwnerUUID()); attacker->canHarmPlayer(getOwnerUUID());