Skip to content

Commit

Permalink
Merge pull request #67 from DuoIncure/stable
Browse files Browse the repository at this point in the history
Update for PM 4.18.0
  • Loading branch information
Vecnavium authored Apr 5, 2023
2 parents ad9d8ad + c37c6d4 commit c7c95d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Slapper
author: [Vecnavium, jojoe77777]
version: 2.1.6
version: 2.1.7
description: Slapper, the NPC plugin for PocketMine-MP
main: slapper\Main
api: 4.0.0
Expand Down
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 c7c95d0

Please sign in to comment.