mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-19 04:50:25 -07:00
Support optional config.json
This commit is contained in:
parent
60880455de
commit
2bb188a6a5
14 changed files with 107 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue