diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index a8e54589f..b1c2f1cd6 100755 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -85,15 +85,6 @@ public function hasLineOfSight(Entity $entity){ //return $this->getLevel()->rayTraceBlocks(Vector3::createVector($this->x, $this->y + $this->height, $this->z), Vector3::createVector($entity->x, $entity->y + $entity->height, $entity->z)) === null; } - public function heal($amount, EntityRegainHealthEvent $source){ - parent::heal($amount, $source); - if($source->isCancelled()){ - return; - } - - $this->attackTime = 0; - } - public function attack($damage, EntityDamageEvent $source){ if($this->attackTime > 0 or $this->noDamageTicks > 0){ $lastCause = $this->getLastDamageCause();