Fix for sandstone pipes connecting to blocks with overridden connection

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