From 2d3cfc1e06e96f56fb038beaf165122bc19be436 Mon Sep 17 00:00:00 2001 From: Aaman <38054324+Vrysed@users.noreply.github.com> Date: Thu, 24 Jan 2019 11:01:43 -0800 Subject: [PATCH] Update Living.php In vanilla regenerating does not effect attack time --- src/pocketmine/entity/Living.php | 9 --------- 1 file changed, 9 deletions(-) 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();