diff --git a/src/pocketmine/network/protocol/PlayerListPacket.php b/src/pocketmine/network/protocol/PlayerListPacket.php index f74741a82..e49ed4f8a 100644 --- a/src/pocketmine/network/protocol/PlayerListPacket.php +++ b/src/pocketmine/network/protocol/PlayerListPacket.php @@ -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]);