mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Fixed PlayerEmoteEvent::setEmoteId() being useless
This commit is contained in:
parent
87031627bf
commit
ef82a2cd79
@ -1737,6 +1737,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
$event = new PlayerEmoteEvent($this, $emoteId);
|
$event = new PlayerEmoteEvent($this, $emoteId);
|
||||||
$event->call();
|
$event->call();
|
||||||
if(!$event->isCancelled()){
|
if(!$event->isCancelled()){
|
||||||
|
$emoteId = $event->getEmoteId();
|
||||||
foreach($this->getViewers() as $player){
|
foreach($this->getViewers() as $player){
|
||||||
$player->getNetworkSession()->onEmote($this, $emoteId);
|
$player->getNetworkSession()->onEmote($this, $emoteId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user