setDisplayName skin fix

This commit is contained in:
Intyre 2015-08-10 16:33:27 +02:00
parent 62848b914d
commit 0f993f8beb
No known key found for this signature in database
GPG Key ID: B06D41D26935005A

View File

@ -565,13 +565,13 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
return $this->displayName;
}
/**
* @param string $name
*/
/**
* @param string $name
*/
public function setDisplayName($name){
$this->displayName = $name;
if($this->spawned){
$this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getDisplayName(), $isSlim, $str);
$this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getDisplayName(), $this->isSkinSlim(), $this->getSkinData());
}
}