Skip to content

Commit

Permalink
Fix syncActorData error
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoIncure committed Mar 27, 2023
1 parent ad9d8ad commit 52deadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slapper/entities/SlapperHuman.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function sendData(?array $targets, ?array $data = null): void{
}
foreach($targets as $p){
$data[EntityMetadataProperties::NAMETAG] = new StringMetadataProperty($this->getSlapperDisplayName($p));
$p->getNetworkSession()->syncActorData($this, $data);
$p->getNetworkSession()->getEntityEventBroadcaster()->syncActorData([$p->getNetworkSession()], $this, $data);
}
}

Expand Down

0 comments on commit 52deadc

Please sign in to comment.