mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-12 00:39:25 +00:00
removed redundant wolf agro fix
This commit is contained in:
parent
4e3fec0d97
commit
cc910b9b7b
|
|
@ -286,7 +286,7 @@ bool Wolf::hurt(DamageSource *source, float dmg)
|
|||
if (isTame())
|
||||
{
|
||||
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);
|
||||
attacker->canHarmPlayer(getOwnerUUID());
|
||||
|
|
|
|||
Loading…
Reference in a new issue