NetworkSession: add missing return type for syncAttributes()

This commit is contained in:
Dylan K. Taylor 2020-01-18 20:00:05 +00:00
parent c0a45083b6
commit df2551ed4d

View File

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