From 780f60554dd8eee65df3457755f079573b7696b7 Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Sat, 19 Oct 2013 10:58:49 +1030 Subject: [PATCH] Fix #871 --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 8b68a96e8..f4eb63294 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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;