feat: allow passing session/auth server overrides

This commit is contained in:
əlemi 2023-02-16 18:10:06 +01:00
parent 3b7aa42e0b
commit e20f7a967f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -79,7 +79,9 @@ class Treepuncher(
elif opt('legacy', default=False, t=bool):
authenticator = MojangAuthenticator(
username= opt('username', default=name, required=True),
password= opt('password')
password= opt('password'),
session_server_override= opt('session_server_override'),
auth_server_override= opt('auth_server_override'),
)
if opt('legacy_token'):
authenticator.deserialize(json.loads(opt('legacy_token')))