EntityShootBowEvent: Remove unnecessary kill()

This commit is contained in:
Dylan K. Taylor 2018-01-24 19:17:08 +00:00
parent 7d88a8b315
commit 26d4169fea

View File

@ -83,7 +83,6 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
public function setProjectile(Entity $projectile){
if($projectile !== $this->projectile){
if(count($this->projectile->getViewers()) === 0){
$this->projectile->kill();
$this->projectile->close();
}
$this->projectile = $projectile;