mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-01 15:53:04 +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){
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user