mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
EntityShootBowEvent: Remove unnecessary kill()
This commit is contained in:
parent
7d88a8b315
commit
26d4169fea
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user