reset spawn coords of the npc every tick it follows. No way to confirm this in osrs, but if a following npc switches to attack you, it could get stuck if you're far away from its spawn point. Example of this for us would be the dwarf random event
also only teleports to player after movement is processed, the old code the following npc could tele and move same tick, which didnt match osrs tests