I forgot to enable this again

This was disabled for try to find the FPS Issue
This commit is contained in:
GabsPuNs
2026-05-28 22:24:17 -04:00
parent 8dececbf90
commit b14dfe07f7

View File

@@ -153,7 +153,6 @@ bool Zombie::hurt(DamageSource *source, float dmg)
{
if (Monster::hurt(source, dmg))
{
/*
shared_ptr<LivingEntity> target = getTarget();
if ( (target == nullptr) && getAttackTarget() != nullptr && getAttackTarget()->instanceof(eTYPE_LIVINGENTITY) ) target = dynamic_pointer_cast<LivingEntity>( getAttackTarget() );
if ( (target == nullptr) && source->getEntity() != nullptr && source->getEntity()->instanceof(eTYPE_LIVINGENTITY) ) target = dynamic_pointer_cast<LivingEntity>( source->getEntity() );
@@ -188,7 +187,7 @@ bool Zombie::hurt(DamageSource *source, float dmg)
}
}
}
*/
return true;
}