mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +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){
|
public function setProjectile(Entity $projectile){
|
||||||
if($projectile !== $this->projectile){
|
if($projectile !== $this->projectile){
|
||||||
if(count($this->projectile->getViewers()) === 0){
|
if(count($this->projectile->getViewers()) === 0){
|
||||||
$this->projectile->kill();
|
|
||||||
$this->projectile->close();
|
$this->projectile->close();
|
||||||
}
|
}
|
||||||
$this->projectile = $projectile;
|
$this->projectile = $projectile;
|
||||||
|
Reference in New Issue
Block a user