From 3c7f68dc1e2fc99c6de85060850b3804c0858b3d Mon Sep 17 00:00:00 2001 From: Encritary Date: Tue, 2 Jul 2019 14:44:41 +0500 Subject: [PATCH 1/2] Fix Entity::isNameTagAlwaysVisible() was returning the wrong value (#2990) * Fix Entity::isNameTagAlwaysVisible() was returning the wrong value * "> 0" to "=== 1" --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index c76f617fd..b7f9263a5 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -662,7 +662,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ * @return bool */ public function isNameTagAlwaysVisible() : bool{ - return $this->getGenericFlag(self::DATA_FLAG_ALWAYS_SHOW_NAMETAG); + return $this->propertyManager->getByte(self::DATA_ALWAYS_SHOW_NAMETAG) === 1; } From ab4b1be36339cc38333d75d3c207e79f57ecce24 Mon Sep 17 00:00:00 2001 From: Takuya Sawada Date: Tue, 2 Jul 2019 18:55:13 +0900 Subject: [PATCH 2/2] add constants for boat action of AnimatePacket closes #2991 --- src/pocketmine/network/mcpe/protocol/AnimatePacket.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pocketmine/network/mcpe/protocol/AnimatePacket.php b/src/pocketmine/network/mcpe/protocol/AnimatePacket.php index 16dcc620c..9613f9cf5 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{ 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;