public static void removePacks (String xml) {
        ArrayList<ModPack> remove = Lists.newArrayList();
        int removed = -1; // TODO: if private xmls ever contain more than one modpack, we need to change this
        for (ModPack pack : packs) {
            if (pack.getParentXml().equalsIgnoreCase(xml)) {
                remove.add(pack);
            }
        }
        for (ModPack pack : remove) {
            removed = pack.getIndex();
            packs.remove(pack);
        }
        for (ModPack pack : packs) {
            if (removed != -1 && pack.getIndex() > removed) {
                pack.setIndex(pack.getIndex() - 1);
            }
        }
        Main.getEventBus().post(new PackChangeEvent(PackChangeEvent.TYPE.REMOVE, true, xml));//makes sure the pack gets removed from the pane
    }