Bukkit/CraftBukkit — pull request #1293 by PaulBGD (2013-12-12 03:14:36+00:00)
Title: [C] Fix setting entity's target. Fixes BUKKIT-1358.

Setting the goal target overrides the entity's will to do something
else. This makes it so entities like wolves with attack another player
with .setTarget(), instead of hanging next to their owner.