Skip to content

Commit

Permalink
Fixed #205
Browse files Browse the repository at this point in the history
  • Loading branch information
xxniceyt committed Aug 13, 2022
1 parent f4e4dd1 commit cb0a2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CLADevs/VanillaX/entities/VanillaEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ protected function sendSpawnPacket(Player $player): void{
$pk->yaw = $this->location->yaw;
$pk->headYaw = $this->location->yaw;
$pk->pitch = $this->location->pitch;
$pk->attributes = array_map(function(Attribute $attr): NetworkAttribute{
return new NetworkAttribute($attr->getId(), $attr->getMinValue(), $attr->getMaxValue(), $attr->getValue(), $attr->getDefaultValue());
$pk->attributes = array_map(function(Attribute $attr) : NetworkAttribute{
return new NetworkAttribute($attr->getId(), $attr->getMinValue(), $attr->getMaxValue(), $attr->getValue(), $attr->getDefaultValue(), []);
}, $this->attributeMap->getAll());
$pk->metadata = $this->getAllNetworkData();
$player->getNetworkSession()->sendDataPacket($pk);
Expand Down

0 comments on commit cb0a2d5

Please sign in to comment.