Merge commit '5056754ce'

# Conflicts:
#	resources/vanilla
#	src/pocketmine/Player.php
This commit is contained in:
Dylan K. Taylor 2020-06-03 12:54:00 +01:00
commit 90b53149d7
2 changed files with 4 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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()
); );
} }