mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 05:40:01 +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->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;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -482,9 +482,9 @@ class NetworkBinaryStream extends BinaryStream{
|
|||||||
*/
|
*/
|
||||||
public function getVector3() : Vector3{
|
public function getVector3() : Vector3{
|
||||||
return new Vector3(
|
return new Vector3(
|
||||||
$this->getRoundedLFloat(4),
|
$this->getLFloat(),
|
||||||
$this->getRoundedLFloat(4),
|
$this->getLFloat(),
|
||||||
$this->getRoundedLFloat(4)
|
$this->getLFloat()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user