<BUG>texturePacks.repaint();HashMap<Integer, List<TexturePack>> sorted = Maps.newHashMap();</BUG><CONTEXT>texturePackPanels.clear();texturePacks.removeAll();currentTexturePacks.clear();int counter = 0;selectedTexturePack = 0;<extra_id_0>sorted.put(0, new ArrayList<TexturePack>());sorted.put(1, new ArrayList<TexturePack>());for (TexturePack texturePack : TexturePack.getTexturePackArray()) {</CONTEXT>
ModPack FTBPack = FTBPacksPane.getInstance().getSelectedPack();ModPack ThirdpartyPack = ThirdPartyPane.getInstance().getSelectedPack();HashMap<Integer, List<TexturePack>> sorted = Maps.newHashMap();