Support for Essence client.
This commit is contained in:
@ -163,11 +163,13 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
||||
return false;
|
||||
}
|
||||
|
||||
final boolean isProtocol235 = _player.getClient().getProtocolVersion() == 235;
|
||||
|
||||
OutgoingPackets.USER_INFO.writeId(packet);
|
||||
|
||||
packet.writeD(_player.getObjectId());
|
||||
packet.writeD(_initSize);
|
||||
packet.writeH(25); // 196
|
||||
packet.writeH(isProtocol235 ? 27 : 25); // 196 - 25, 235 - 27
|
||||
packet.writeB(_masks);
|
||||
|
||||
if (containsMask(UserInfoType.RELATION))
|
||||
@ -437,6 +439,16 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
||||
packet.writeD(0x00); // 196
|
||||
}
|
||||
|
||||
if (isProtocol235)
|
||||
{
|
||||
// 1
|
||||
packet.writeH(6);
|
||||
packet.writeC(0);
|
||||
// 2
|
||||
packet.writeH(6);
|
||||
packet.writeC(0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user