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

@ -1944,6 +1944,10 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$this->needsDespawn = true;
}
public function isFlaggedForDespawn() : bool{
return $this->needsDespawn;
}
/**
* Returns whether the entity has been "closed".
* @return bool