mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
EntityShootBowEvent: Remove unnecessary kill()
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user