mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +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{
|
public function flagForDespawn() : void{
|
||||||
$this->needsDespawn = true;
|
$this->needsDespawn = true;
|
||||||
|
$this->scheduleUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isFlaggedForDespawn() : bool{
|
public function isFlaggedForDespawn() : bool{
|
||||||
|
Reference in New Issue
Block a user