fix == to .equals(...), add proxy server
This commit is contained in:
parent
f48e22f761
commit
d1577a0652
48254
javascript/classes.js
48254
javascript/classes.js
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,13 @@
|
|||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglercraftRandom;
|
||||
import net.lax1dude.eaglercraft.LocalStorageManager;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
public class GameSettings {
|
||||
public static boolean useDefaultProtocol = true;
|
||||
public static String proxy = "pproxy.rom1504.fr";
|
||||
public static String proxy = (new String[]{"pproxy.rom1504.fr","webmcproxy.glitch.me"})[(int)Math.floor(Math.random()*2)];
|
||||
|
||||
|
||||
private static final String[] RENDER_DISTANCES = new String[] { "options.renderDistance.far", "options.renderDistance.normal", "options.renderDistance.short", "options.renderDistance.tiny" };
|
||||
|
|
|
@ -68,7 +68,7 @@ public class GuiConnecting extends GuiScreen {
|
|||
}
|
||||
}
|
||||
|
||||
this.clientHandler = new NetClientHandler(this.mc, this.mc.gameSettings.proxy==""?uri:uria, 0);
|
||||
this.clientHandler = new NetClientHandler(this.mc, this.mc.gameSettings.proxy.equals("")?uri:uria, 0);
|
||||
if(this.mc.gameSettings.useDefaultProtocol) {
|
||||
this.clientHandler.addToSendQueue(new Packet2ClientProtocol(61, EaglerProfile.username, uria, port));
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue
Block a user