private static void updateTexturePacks () {
        for (int i = 0; i < texturePackPanels.size(); i++) {
            if (selectedTexturePack == i) {
                String packs = "";
                if (TexturePack.getTexturePack(getIndex()).getCompatible() != null) {
                    packs += "<p>This texture pack works with the following packs:</p><ul>";
                    for (String name : TexturePack.getTexturePack(getIndex()).getCompatible()) {
                        packs += "<li>" + (ModPack.getPack(name) != null ? ModPack.getPack(name).getName() : name) + "</li>";
                    }
                    packs += "</ul>";
                }
                texturePackPanels.get(i).setBackground(UIManager.getColor("control").darker().darker());
                texturePackPanels.get(i).setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
                LaunchFrame.updateTpInstallLocs(TexturePack.getTexturePack(getIndex()).getCompatible());
                File tempDir = new File(OSUtils.getCacheStorageLocation(), "TexturePacks" + File.separator + TexturePack.getTexturePack(getIndex()).getName());
                textureInfo.setText("<html><img src='file:///" + tempDir.getPath() + File.separator + TexturePack.getTexturePack(getIndex()).getImageName() + "' width=400 height=200></img> <br>"
                        + TexturePack.getTexturePack(getIndex()).getInfo() + packs);
                textureInfo.setCaretPosition(0);
            } else {
                texturePackPanels.get(i).setBackground(UIManager.getColor("control"));
                texturePackPanels.get(i).setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
            }
        }
    }