mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Entity: Fixed despawn flagging not kicking in until scheduling updates on entities
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user