mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-24 21:49:43 +00:00
fixed teleport
This commit is contained in:
parent
bb38675f1c
commit
8cf59ff287
1 changed files with 7 additions and 3 deletions
|
|
@ -286,9 +286,13 @@ class Player{
|
||||||
$player->sendArmor($this);
|
$player->sendArmor($this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$resyncpos = new Position($pos->x, $pos->y, $pos->z, $pos->level);
|
||||||
|
}else{
|
||||||
|
$resyncpos = new Vector3($pos->x, $pos->y, $pos->z);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lastCorrect = $pos;
|
$this->lastCorrect = $resyncpos;
|
||||||
$this->entity->fallY = false;
|
$this->entity->fallY = false;
|
||||||
$this->entity->fallStart = false;
|
$this->entity->fallStart = false;
|
||||||
$this->entity->notOnGroundTicks = 0;
|
$this->entity->notOnGroundTicks = 0;
|
||||||
|
|
@ -302,7 +306,7 @@ class Player{
|
||||||
}
|
}
|
||||||
$this->entity->check = true;
|
$this->entity->check = true;
|
||||||
if($force === true){
|
if($force === true){
|
||||||
$this->forceMovement = $pos;
|
$this->forceMovement = $resyncpos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue