Proper workaround for a strange issue with getpos(). Should fix the AI getting stuck when a mob follows another mob