mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Move Entity despawn logic back to Player
this is not network-session specific, and different implementations will need to do this.
This commit is contained in:
@ -790,11 +790,7 @@ class NetworkSession{
|
||||
}
|
||||
|
||||
public function stopUsingChunk(int $chunkX, int $chunkZ) : void{
|
||||
foreach($this->player->getWorld()->getChunkEntities($chunkX, $chunkZ) as $entity){
|
||||
if($entity !== $this->player){
|
||||
$entity->despawnFrom($this->player);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function tick() : bool{
|
||||
|
Reference in New Issue
Block a user