mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Removed obsolete parameters from Entity->attack() and Entity->heal()
This commit is contained in:
@ -49,9 +49,9 @@ abstract class Projectile extends Entity{
|
||||
parent::__construct($level, $nbt);
|
||||
}
|
||||
|
||||
public function attack($damage, EntityDamageEvent $source){
|
||||
public function attack(EntityDamageEvent $source){
|
||||
if($source->getCause() === EntityDamageEvent::CAUSE_VOID){
|
||||
parent::attack($damage, $source);
|
||||
parent::attack($source);
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ abstract class Projectile extends Entity{
|
||||
$ev = new EntityDamageByChildEntityEvent($this->getOwningEntity(), $this, $entity, EntityDamageEvent::CAUSE_PROJECTILE, $damage);
|
||||
}
|
||||
|
||||
$entity->attack($ev->getFinalDamage(), $ev);
|
||||
$entity->attack($ev);
|
||||
|
||||
$this->hadCollision = true;
|
||||
|
||||
|
Reference in New Issue
Block a user