mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fix #871
This commit is contained in:
parent
4aa0ae86fb
commit
780f60554d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue