Removed entity metadata setting from LoginPacket handler

why the f was this here
This commit is contained in:
Dylan K. Taylor 2017-10-08 19:10:49 +01:00
parent 3bda1473e7
commit fdfe70b9f2

View File

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