I think there should be a different range on where the NPCs can detect each other, 25 is way too low, people have a problem with 50, somewhere inbetween should work, or if possible, they detect in a sort of rectangle instead of a square? like, 50 blocks wide, 25 tall or something? I don't know...