Fix Entity::isNameTagAlwaysVisible() was returning the wrong value (#2990)

* Fix Entity::isNameTagAlwaysVisible() was returning the wrong value

* "> 0" to "=== 1"
This commit is contained in:
Encritary 2019-07-02 14:44:41 +05:00 committed by Dylan T
parent 15fa1056b7
commit 3c7f68dc1e

View File

@ -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;
}