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

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