public void selectModIndex(int var1) { selected = var1; UpdateManagerMod mod = mods.get(var1); GuiButton bWebsite = (GuiButton) controlList.get(4); GuiButton bChangelog = (GuiButton) controlList.get(5); GuiButton bDownload = (GuiButton) controlList.get(6); if (UpdateManager.online) { bWebsite.enabled = true; bChangelog.enabled = mod.getChangelogURL() != null; bDownload.enabled = mod.getDirectDownloadURL() != null && !ThreadDownloadMod.downloadings.contains(mod.getModName()); } if (specialButton != null) controlList.remove(specialButton); if (mod.getSpecialButtonName() != null) { String name = mod.getSpecialButtonName(); specialButton = new GuiButton( 8, width - fontRenderer.getStringWidth(name) - 12, 106, fontRenderer.getStringWidth(name) + 8, 20, name); controlList.add(specialButton); } }