mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
fixed misusing isAlive(), close #1523
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user