Entity: Fixed despawn flagging not kicking in until scheduling updates on entities

This commit is contained in:
Dylan K. Taylor 2018-06-07 12:34:23 +01:00
parent c83c0eb935
commit fdd5b7b9c9

View File

@ -1975,6 +1975,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
*/
public function flagForDespawn() : void{
$this->needsDespawn = true;
$this->scheduleUpdate();
}
public function isFlaggedForDespawn() : bool{