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

@ -46,6 +46,10 @@ public class WorldList {
if (MonotonicClock.currentTimeMillis() - 5000L < closeTime) {
return 0;
}
if (GlobalJsonConfig.instance != null) {
client.worldListHostname = GlobalJsonConfig.instance.ip_management;
client.worldListPort = GlobalJsonConfig.instance.wl_port;
}
Protocol.socketRequest = GameShell.signLink.openSocket(client.worldListHostname, client.worldListPort);
openTime = MonotonicClock.currentTimeMillis();
step = 1;