public void confirmClicked(boolean par1, int par2)
    {
        if (this.deleteClicked)
        {
            this.deleteClicked = false;

            if (par1)
            {
                this.serverList.remove(par2);
                this.saveServerList();
            }

            this.mc.displayGuiScreen(this);
        }
        else if (this.directClicked)
        {
            this.directClicked = false;

            if (par1)
            {
                this.joinServer(this.tempServer);
            }
            else
            {
                this.mc.displayGuiScreen(this);
            }
        }
        else if (this.addClicked)
        {
            this.addClicked = false;

            if (par1)
            {
                this.serverList.add(this.tempServer);
                this.saveServerList();
            }

            this.mc.displayGuiScreen(this);
        }
        else if (this.editClicked)
        {
            this.editClicked = false;

            if (par1)
            {
                ServerNBTStorage var3 = (ServerNBTStorage)this.serverList.get(this.selectedServer);
                var3.name = this.tempServer.name;
                var3.host = this.tempServer.host;
                this.saveServerList();
            }

            this.mc.displayGuiScreen(this);
        }
    }