Support optional config.json

This commit is contained in:
Pazaz 2022-05-30 09:48:15 -04:00
parent 60880455de
commit 2bb188a6a5
14 changed files with 107 additions and 8 deletions

View file

@ -243,6 +243,10 @@ public class LoginManager {
errors++;
}
if (step == 1) {
if (GlobalJsonConfig.instance != null) {
client.hostname = GlobalJsonConfig.instance.ip_management;
client.port = GlobalJsonConfig.instance.server_port + client.worldListId;
}
Protocol.socketRequest = GameShell.signLink.openSocket(client.hostname, client.port);
step = 2;
}