diff --git a/src/network/mcpe/handler/InGamePacketHandler.php b/src/network/mcpe/handler/InGamePacketHandler.php index f14d659c2d..3a407fb7d5 100644 --- a/src/network/mcpe/handler/InGamePacketHandler.php +++ b/src/network/mcpe/handler/InGamePacketHandler.php @@ -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; } diff --git a/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php b/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php index 4e1a1352ed..60d5aa425a 100644 --- a/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php +++ b/src/network/mcpe/protocol/serializer/NetworkBinaryStream.php @@ -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() ); }