private static void populateInstalledTextures (ModPack pack) {

        int mcversion = Integer.parseInt(pack.getMcVersion().replace(".", ""));
        File textureVersionFile = new File(Settings.getSettings().getInstallPath(), pack.getDir() + sep + "minecraft" + sep + getTPDirectory(mcversion) + sep + "textureVersions");
        if (installedTextures != null) {
            installedTextures.clear();
        } else {
            installedTextures = Maps.newHashMap();
        }
        if (textureVersionFile.exists()) {
            try {
                BufferedReader in = new BufferedReader(new FileReader(textureVersionFile));
                String line;
                while ((line = in.readLine()) != null) {
                    String[] split = line.toLowerCase().split(":");
                    if (split.length == 2) {
                        installedTextures.put(split[0], split[1]);
                    }
                }
                in.close();
            } catch (Exception e) {
                Logger.logError("Error populating installed textures.", e);
            }
        }
    }