Dropped login support for protocol 235.

This commit is contained in:
MobiusDevelopment
2019-12-31 13:43:01 +00:00
parent 9e3fb16374
commit d92b0d9627
6 changed files with 6 additions and 40 deletions

View File

@@ -138,13 +138,11 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
return false;
}
final boolean isProtocol235 = (_player.getClient() != null) && (_player.getClient().getProtocolVersion() == 235);
OutgoingPackets.USER_INFO.writeId(packet);
packet.writeD(_player.getObjectId());
packet.writeD(_initSize);
packet.writeH(isProtocol235 ? 27 : 25); // 196 - 25, 235 - 27
packet.writeH(25); // 196 - 25
packet.writeB(_masks);
if (containsMask(UserInfoType.RELATION))
@@ -414,16 +412,6 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
packet.writeD(0x00);
}
if (isProtocol235)
{
// 1
packet.writeH(6);
packet.writeC(0);
// 2
packet.writeH(6);
packet.writeC(0);
}
return true;
}