Fix walk sounds (#3492)

Co-authored-by: Govdim <govdim.govorek@gmail.com>
This commit is contained in:
Govdim 2020-05-24 16:03:14 +03:00 committed by GitHub
parent 4199c3796f
commit c3a795e876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -3743,6 +3743,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$pk->headYaw = $yaw;
$pk->yaw = $yaw;
$pk->mode = $mode;
$pk->onGround = $this->onGround;
if($targets !== null){
$this->server->broadcastPacket($targets, $pk);

View File

@ -1168,6 +1168,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
if($teleport){
$pk->flags |= MoveActorAbsolutePacket::FLAG_TELEPORT;
}
if($this->onGround){
$pk->flags |= MoveActorAbsolutePacket::FLAG_GROUND;
}
$this->level->broadcastPacketToViewers($this, $pk);
}