fixed misusing isAlive(), close #1523

This commit is contained in:
Dylan K. Taylor
2017-11-07 09:32:38 +00:00
parent 99f06c6c18
commit 0e64c3dad8
6 changed files with 10 additions and 6 deletions

View File

@ -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);