More specifically, when on a void world with no resources. Looking at the code, this appears to be because it looks for the nearest resource patch and spawns within 10 tiles of it, but if there are no resources, it just spawns within 10 tiles of the origin.