Fixed a bug with pipes being too close in some cases