Player: fix terrain getting redrawn when moving in noclip mode

This commit is contained in:
Dylan K. Taylor 2022-06-09 13:48:29 +01:00
parent 5e22b70b6d
commit bb5b52d998
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -2339,6 +2339,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
parent::syncNetworkData($properties);
$properties->setGenericFlag(EntityMetadataFlags::ACTION, $this->startAction > -1);
$properties->setGenericFlag(EntityMetadataFlags::HAS_COLLISION, $this->hasBlockCollision());
$properties->setPlayerFlag(PlayerMetadataFlags::SLEEP, $this->sleeping !== null);
$properties->setBlockPos(EntityMetadataProperties::PLAYER_BED_POSITION, $this->sleeping !== null ? BlockPosition::fromVector3($this->sleeping) : new BlockPosition(0, 0, 0));