Support for Essence client.

This commit is contained in:
MobiusDevelopment
2019-11-06 19:51:28 +00:00
parent 91936e2787
commit abe9b7faff
6 changed files with 49 additions and 8 deletions

View File

@ -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;
}