mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Fix walk sounds (#3492)
Co-authored-by: Govdim <govdim.govorek@gmail.com>
This commit is contained in:
parent
4199c3796f
commit
c3a795e876
@ -3743,6 +3743,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$pk->headYaw = $yaw;
|
$pk->headYaw = $yaw;
|
||||||
$pk->yaw = $yaw;
|
$pk->yaw = $yaw;
|
||||||
$pk->mode = $mode;
|
$pk->mode = $mode;
|
||||||
|
$pk->onGround = $this->onGround;
|
||||||
|
|
||||||
if($targets !== null){
|
if($targets !== null){
|
||||||
$this->server->broadcastPacket($targets, $pk);
|
$this->server->broadcastPacket($targets, $pk);
|
||||||
|
@ -1168,6 +1168,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
|||||||
if($teleport){
|
if($teleport){
|
||||||
$pk->flags |= MoveActorAbsolutePacket::FLAG_TELEPORT;
|
$pk->flags |= MoveActorAbsolutePacket::FLAG_TELEPORT;
|
||||||
}
|
}
|
||||||
|
if($this->onGround){
|
||||||
|
$pk->flags |= MoveActorAbsolutePacket::FLAG_GROUND;
|
||||||
|
}
|
||||||
|
|
||||||
$this->level->broadcastPacketToViewers($this, $pk);
|
$this->level->broadcastPacketToViewers($this, $pk);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user