NetworkSession: Show the correct name on the player list

This commit is contained in:
Dylan K. Taylor 2019-06-27 17:04:36 +01:00
parent 1749b57a83
commit 193a41566d

View File

@ -803,7 +803,7 @@ class NetworkSession{
}
public function onPlayerAdded(Player $p) : void{
$this->sendDataPacket(PlayerListPacket::add([PlayerListEntry::createAdditionEntry($p->getUniqueId(), $p->getId(), $p->getName(), $p->getSkin(), $p->getXuid())]));
$this->sendDataPacket(PlayerListPacket::add([PlayerListEntry::createAdditionEntry($p->getUniqueId(), $p->getId(), $p->getDisplayName(), $p->getSkin(), $p->getXuid())]));
}
public function onPlayerRemoved(Player $p) : void{