mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 09:39:56 +00:00
Fix player lists and skins
This commit is contained in:
parent
bd1b18d9af
commit
1120dff492
@ -47,7 +47,7 @@ class PlayerListPacket extends DataPacket{
|
|||||||
public function encode(){
|
public function encode(){
|
||||||
$this->reset();
|
$this->reset();
|
||||||
$this->putByte($this->type);
|
$this->putByte($this->type);
|
||||||
$this->putInt(count($this->entries));
|
$this->putUnsignedVarInt(count($this->entries));
|
||||||
foreach($this->entries as $d){
|
foreach($this->entries as $d){
|
||||||
if($this->type === self::TYPE_ADD){
|
if($this->type === self::TYPE_ADD){
|
||||||
$this->putUUID($d[0]);
|
$this->putUUID($d[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user