From cc3f05a58f2264ca0258fb8cb955af8081013caf Mon Sep 17 00:00:00 2001 From: Unknown Null <91208232+UnknownNull@users.noreply.github.com> Date: Sun, 16 Apr 2023 12:03:19 +0330 Subject: [PATCH] fix AddActorPacket for 1.19.10 and higher --- src/BlockHorizons/BlockPets/pets/BasePet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BlockHorizons/BlockPets/pets/BasePet.php b/src/BlockHorizons/BlockPets/pets/BasePet.php index 48a7c8b..86295e1 100644 --- a/src/BlockHorizons/BlockPets/pets/BasePet.php +++ b/src/BlockHorizons/BlockPets/pets/BasePet.php @@ -316,6 +316,7 @@ protected function sendSpawnPacket(Player $player): void { $this->location->pitch, $this->location->yaw, $this->location->yaw, + $this->location->yaw, array_map(static function(Attribute $attr): NetworkAttribute { return new NetworkAttribute($attr->getId(), $attr->getMinValue(), $attr->getMaxValue(), $attr->getValue(), $attr->getDefaultValue()); }, $this->attributeMap->getAll()),