From df2551ed4d5596e84f60d2d1da41bac833584725 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 18 Jan 2020 20:00:05 +0000 Subject: [PATCH] NetworkSession: add missing return type for syncAttributes() --- src/network/mcpe/NetworkSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));