
Originally Posted by
lumplum
its not the offset that is the problem here, its the fact that you're not using the female model at all. All armours have a female variants and the ones you are using are male.
You’re right. I now narrowed it down to the client not distinguishing between male and female characters. The client always sets myGender to male when reading stream.getUnsignedBytes(), which equals 255. Therefore, myGender sets to 0 which is male.
Code:
public void updatePlayer(ByteBuffer stream) {
stream.position = 0;
myGender = stream.getUnsignedByte();