// reset movetype, cause 10 is non existant for the client
moveType = MovementType.FORWARD;
}
if (moveType != MovementType.STOP && character.getMoveState() == MovementState.MOVE_CHANGE_DIR) {
P026_MovementDirection movementDirection = new P026_MovementDirection();
movementDirection.setAgentId(character.getAgentID());
Vector2 direction = new Vector2(character.getDirection().getX(), character.getDirection().getY());
movementDirection.setDirection(direction);
movementDirection.setMoveType((short) moveType.getValue());
recipient.write(movementDirection);
// reset the moving state here
character.setMoveState(MovementState.MOVE_KEEP_DIR);
}