mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +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())
|
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());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue