mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Fix #871
This commit is contained in:
parent
4aa0ae86fb
commit
780f60554d
@ -746,7 +746,7 @@ class Player{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function teleport(Vector3 $pos, $yaw = false, $pitch = false, $terrain = true, $force = true){
|
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;
|
$this->entity->check = false;
|
||||||
if($yaw === false){
|
if($yaw === false){
|
||||||
$yaw = $this->entity->yaw;
|
$yaw = $this->entity->yaw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user