Fix player lists and skins

This commit is contained in:
Dylan K. Taylor 2016-10-16 16:53:29 +01:00
parent bd1b18d9af
commit 1120dff492

View File

@ -47,7 +47,7 @@ class PlayerListPacket extends DataPacket{
public function encode(){
$this->reset();
$this->putByte($this->type);
$this->putInt(count($this->entries));
$this->putUnsignedVarInt(count($this->entries));
foreach($this->entries as $d){
if($this->type === self::TYPE_ADD){
$this->putUUID($d[0]);