From 78baa237e356f5cedd86ce37c4b505f993d303f1 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 15 May 2013 19:52:01 +0200 Subject: [PATCH] Remove teleporting players from the other world --- src/Player.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Player.php b/src/Player.php index 25c0d340f..c8e43caea 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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, ));