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