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