fix == to .equals(...), add proxy server

This commit is contained in:
ayunami2000 2022-01-28 01:41:47 -05:00
parent f48e22f761
commit d1577a0652
3 changed files with 24342 additions and 23917 deletions

File diff suppressed because one or more lines are too long

View File

@ -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" };

View File

@ -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{