Fix for sandstone pipes connecting to blocks with overridden connection

As described on https://github.com/BuildCraft/BuildCraft/issues/1193