mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
fixed misusing isAlive(), close #1523
This commit is contained in:
@ -121,7 +121,7 @@ abstract class Projectile extends Entity{
|
||||
|
||||
$hasUpdate = parent::entityBaseTick($tickDiff);
|
||||
|
||||
if($this->isAlive()){
|
||||
if(!$this->isFlaggedForDespawn()){
|
||||
$movingObjectPosition = null;
|
||||
|
||||
$moveVector = new Vector3($this->x + $this->motionX, $this->y + $this->motionY, $this->z + $this->motionZ);
|
||||
|
Reference in New Issue
Block a user