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
2 changed files with 4 additions and 0 deletions

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);
}