quick patch of random proxy chooser

This commit is contained in:
ayunami2000 2022-02-01 08:29:48 -05:00
parent 5bb2bb7d8a
commit 08d67a5267
2 changed files with 18523 additions and 18513 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ public class GameSettings {
public static String proxy = "";
public static String getNewProxy(){
String res=proxy;
while(res.equals(proxy)) res = ConfigConstants.proxies[(int) Math.floor(Math.random() * 2)];
while(res.equals(proxy)) res = ConfigConstants.proxies[(int) Math.floor(Math.random() * ConfigConstants.proxies.length)];
return res;
}
static {