Living: set SPRINTING flag when it's needed, close #3521

This commit is contained in:
Dylan K. Taylor 2020-05-21 20:01:37 +01:00
parent ec8ee29291
commit f77eea8c44

View File

@ -765,6 +765,7 @@ abstract class Living extends Entity{
$this->networkProperties->setGenericFlag(EntityMetadataFlags::BREATHING, $this->breathing); $this->networkProperties->setGenericFlag(EntityMetadataFlags::BREATHING, $this->breathing);
$this->networkProperties->setGenericFlag(EntityMetadataFlags::SNEAKING, $this->sneaking); $this->networkProperties->setGenericFlag(EntityMetadataFlags::SNEAKING, $this->sneaking);
$this->networkProperties->setGenericFlag(EntityMetadataFlags::SPRINTING, $this->sprinting);
} }
protected function onDispose() : void{ protected function onDispose() : void{