fix fard proxy toggle button
This commit is contained in:
parent
9c61e50041
commit
efce711ed1
49254
javascript/classes.js
49254
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -284,7 +284,7 @@ public class GuiScreenEditProfile extends GuiScreen {
|
|||
this.mc.gameSettings.proxy=proxy.getText();
|
||||
|
||||
//check proxy
|
||||
if(!this.mc.gameSettings.proxy.equals("")) {
|
||||
if(this.mc.gameSettings.useProxy&&!this.mc.gameSettings.proxy.equals("")) {
|
||||
proxyInvalid=0;
|
||||
this.drawCenteredString(this.fontRenderer, "checking proxy...", this.width / 2, 5, 16777215);
|
||||
try {
|
||||
|
@ -355,7 +355,7 @@ public class GuiScreenEditProfile extends GuiScreen {
|
|||
}else if (par1GuiButton.id == 5) {
|
||||
//toggle using proxy
|
||||
this.mc.gameSettings.useProxy=!this.mc.gameSettings.useProxy;
|
||||
button4.displayString=(this.mc.gameSettings.useProxy?"Dis":"En")+"able Proxy Mode";
|
||||
button4.displayString=(this.mc.gameSettings.useProxy?"Dis":"En")+"able Proxy";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user