And PD17: "The just man is most free from trouble; the unjust most full of trouble." And so it is for the sake of pleasure that we act justly.
Also, taking it a step further...if I understand my own nature with regard to pleasure and pain, then it can give me pleasure when I know that I am helping someone else escape from pain...and thus also I don't intentionally cause pain to anyone.