Example: player 1 follows player 2, on player 1's screen he is facing player 2 but on player 2's screen he is facing the direction he is headed in instead of player 2.
in player updating i have this method.
Code:
private void appendFaceMob(StreamBuffer.OutBuffer out, Mob mob)
{
int faceIndex = -1;
if (mob != null)
{
if (mob.isPlayer())
{
faceIndex = mob.getIndex() + 32768;
} else
{
faceIndex = mob.getIndex();
}
}
out.writeShort(faceIndex, StreamBuffer.ByteOrder.LITTLE);
}
in the player update masks i have this...
Code:
if (mobFaceUpdate)
{
mask |= 1;
}
...
if (mobFaceUpdate)
{
appendFaceMob(cachedBlock, flags.getFacingMob());
}
not a client issue.