Update SetNameTagVisibleTask.php
This commit is contained in:
parent
c411bb63c0
commit
035c2e332f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class SetNameTagVisibleTask extends \pocketmine\scheduler\Task {
|
|||
public function onRun($tick) {
|
||||
foreach($this->owner->getServer()->getLevels() as $level) {
|
||||
foreach ($level->getEntities() as $et) {
|
||||
if(isset($et->namedtag->isUsedToFloat)) {
|
||||
if(isset($et->namedtag->getValue()->isUsedToFloat)){
|
||||
$et->setNameTagAlwaysVisible(true);
|
||||
$et->setNameTagVisible(true);
|
||||
$et->setImmobile(true);
|
||||
|
|
Loading…
Reference in a new issue