From 3c7f68dc1e2fc99c6de85060850b3804c0858b3d Mon Sep 17 00:00:00 2001 From: Encritary Date: Tue, 2 Jul 2019 14:44:41 +0500 Subject: [PATCH] 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 c76f617fdd..b7f9263a59 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; }