mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
Player: fix terrain getting redrawn when moving in noclip mode
This commit is contained in:
@@ -2339,6 +2339,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
parent::syncNetworkData($properties);
|
parent::syncNetworkData($properties);
|
||||||
|
|
||||||
$properties->setGenericFlag(EntityMetadataFlags::ACTION, $this->startAction > -1);
|
$properties->setGenericFlag(EntityMetadataFlags::ACTION, $this->startAction > -1);
|
||||||
|
$properties->setGenericFlag(EntityMetadataFlags::HAS_COLLISION, $this->hasBlockCollision());
|
||||||
|
|
||||||
$properties->setPlayerFlag(PlayerMetadataFlags::SLEEP, $this->sleeping !== null);
|
$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));
|
$properties->setBlockPos(EntityMetadataProperties::PLAYER_BED_POSITION, $this->sleeping !== null ? BlockPosition::fromVector3($this->sleeping) : new BlockPosition(0, 0, 0));
|
||||||
|
Reference in New Issue
Block a user