diff --git a/src/network/mcpe/NetworkSession.php b/src/network/mcpe/NetworkSession.php index 3837e7b5f..ca613441d 100644 --- a/src/network/mcpe/NetworkSession.php +++ b/src/network/mcpe/NetworkSession.php @@ -684,7 +684,7 @@ class NetworkSession{ $this->sendDataPacket($pk); } - public function syncAttributes(Living $entity, bool $sendAll = false){ + public function syncAttributes(Living $entity, bool $sendAll = false) : void{ $entries = $sendAll ? $entity->getAttributeMap()->getAll() : $entity->getAttributeMap()->needSend(); if(count($entries) > 0){ $this->sendDataPacket(UpdateAttributesPacket::create($entity->getId(), $entries));