mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Remove teleporting players from the other world
This commit is contained in:
parent
3fca7ab6a5
commit
78baa237e3
@ -591,6 +591,11 @@ class Player{
|
||||
if($pos instanceof Position and $pos->level !== $this->level){
|
||||
foreach($this->server->api->entity->getAll($this->level) as $e){
|
||||
if($e !== $this->entity){
|
||||
if($e->player instanceof Player){
|
||||
$e->player->dataPacket(MC_REMOVE_ENTITY, array(
|
||||
"eid" => $this->eid,
|
||||
));
|
||||
}
|
||||
$this->dataPacket(MC_REMOVE_ENTITY, array(
|
||||
"eid" => $e->eid,
|
||||
));
|
||||
|
Loading…
x
Reference in New Issue
Block a user