mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed error with world teleporting
This commit is contained in:
parent
de5be4168d
commit
cef4347a02
4 changed files with 14 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue