Proper packet structure for FriendList.

This commit is contained in:
MobiusDevelopment
2021-08-17 12:19:29 +00:00
parent 836f18108b
commit e112a41862

View File

@@ -62,14 +62,13 @@ public class FriendList implements IClientOutgoingPacket
public boolean write(PacketWriter packet) public boolean write(PacketWriter packet)
{ {
OutgoingPackets.FRIEND_LIST.writeId(packet); OutgoingPackets.FRIEND_LIST.writeId(packet);
packet.writeH(_info.size()); packet.writeD(_info.size());
for (FriendInfo friend : _info) for (FriendInfo friend : _info)
{ {
packet.writeH(0); // ??
packet.writeD(friend._objId); packet.writeD(friend._objId);
packet.writeS(friend._name); packet.writeS(friend._name);
packet.writeD(friend._online ? 0x01 : 0x00); packet.writeD(friend._online ? 0x01 : 0x00);
packet.writeH(0); // ?? packet.writeD(friend._online ? friend._objId : 0x00);
} }
return true; return true;
} }