Remove teleporting players from the other world

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-15 19:52:01 +02:00
parent 3fca7ab6a5
commit 78baa237e3

View File

@ -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,
));