if(fromInfo == null && toInfo == null) return false;
if(fromInfo != null) {
if(!fromInfo.canConnect(to, way, ignoreSystemDisconnection)) return false;
}
if(toInfo != null) {
if(!toInfo.canConnect(from, way.getOpposite(), ignoreSystemDisconnection)) return false;
}
return true;
}
public static boolean isPipeControllerEquipped(EntityPlayer entityplayer) {