From fdfe70b9f282d8fe199fb230c21f0931894e5c80 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 8 Oct 2017 19:10:49 +0100 Subject: [PATCH] Removed entity metadata setting from LoginPacket handler why the f was this here --- src/pocketmine/Player.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index eca8298e80..0bb0db2131 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1837,7 +1837,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } protected function initHumanData(){ - //No need to do anything here, this data will be set from the login. + $this->setNameTag($this->username); } protected function initEntity(){ @@ -2045,7 +2045,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->username = TextFormat::clean($packet->username); $this->displayName = $this->username; $this->iusername = strtolower($this->username); - $this->setDataProperty(self::DATA_NAMETAG, self::DATA_TYPE_STRING, $this->username, false); if(count($this->server->getOnlinePlayers()) >= $this->server->getMaxPlayers() and $this->kick("disconnectionScreen.serverFull", false)){ return true;