mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-26 13:19:55 +00:00
Merge commit '5056754ce'
# Conflicts: # resources/vanilla # src/pocketmine/Player.php
This commit is contained in:
commit
90b53149d7
@ -141,7 +141,7 @@ class InGamePacketHandler extends PacketHandler{
|
||||
}
|
||||
|
||||
$this->player->setRotation($yaw, $pitch);
|
||||
$this->player->updateNextPosition($packet->position->subtract(0, 1.62, 0));
|
||||
$this->player->updateNextPosition($packet->position->round(4)->subtract(0, 1.62, 0));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -482,9 +482,9 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
*/
|
||||
public function getVector3() : Vector3{
|
||||
return new Vector3(
|
||||
$this->getRoundedLFloat(4),
|
||||
$this->getRoundedLFloat(4),
|
||||
$this->getRoundedLFloat(4)
|
||||
$this->getLFloat(),
|
||||
$this->getLFloat(),
|
||||
$this->getLFloat()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user