Fix setting entity targets

Added from here:
https://github.com/Bukkit/CraftBukkit/pull/1293