This commit is contained in:
Michael Yoo 2013-10-19 10:58:49 +10:30
parent 4aa0ae86fb
commit 780f60554d

View File

@ -746,7 +746,7 @@ class Player{
}
public function teleport(Vector3 $pos, $yaw = false, $pitch = false, $terrain = true, $force = true){
if($this->entity instanceof Entity){
if($this->entity instanceof Entity and $this->level instanceof Level){
$this->entity->check = false;
if($yaw === false){
$yaw = $this->entity->yaw;