diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 49bea4aa0..1deae6a8b 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -279,7 +279,7 @@ abstract class Entity extends Location implements EntityIds{ * @return bool */ public function isNameTagAlwaysVisible() : bool{ - return $this->getGenericFlag(EntityMetadataFlags::ALWAYS_SHOW_NAMETAG); + return $this->propertyManager->getByte(EntityMetadataProperties::ALWAYS_SHOW_NAMETAG) === 1; } diff --git a/src/pocketmine/network/mcpe/protocol/AnimatePacket.php b/src/pocketmine/network/mcpe/protocol/AnimatePacket.php index a32ffe693..5fb3cb8a7 100644 --- a/src/pocketmine/network/mcpe/protocol/AnimatePacket.php +++ b/src/pocketmine/network/mcpe/protocol/AnimatePacket.php @@ -35,6 +35,8 @@ class AnimatePacket extends DataPacket implements ClientboundPacket, Serverbound public const ACTION_STOP_SLEEP = 3; public const ACTION_CRITICAL_HIT = 4; + public const ACTION_ROW_RIGHT = 128; + public const ACTION_ROW_LEFT = 129; /** @var int */ public $action;