Fixed error with world teleporting

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-15 17:40:39 +02:00
parent de5be4168d
commit cef4347a02
4 changed files with 14 additions and 4 deletions

View file

@ -569,6 +569,7 @@ class Player{
public function teleport(Vector3 $pos, $yaw = false, $pitch = false, $terrain = true){
if($this->entity instanceof Entity){
$this->entity->check = false;
if($yaw === false){
$yaw = $this->entity->yaw;
}
@ -591,6 +592,7 @@ class Player{
$this->orderChunks();
$this->getNextChunk();
}
$this->entity->check = true;
}
$this->dataPacket(MC_MOVE_PLAYER, array(
"eid" => 0,