ops xor was wrong
This commit is contained in:
parent
7c4c523562
commit
8503a36df4
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class Treepuncher(
|
|||
self.logger.warning("Saved session uses a different version")
|
||||
prev_auth = self.storage.auth()
|
||||
if prev_auth:
|
||||
if prev_auth.legacy ^ isinstance(authenticator, MicrosoftAuthenticator):
|
||||
if prev_auth.legacy ^ isinstance(authenticator, MojangAuthenticator):
|
||||
self.logger.warning("Saved session is incompatible with configured authenticator")
|
||||
authenticator.deserialize(prev_auth.token)
|
||||
self.logger.info("Loaded session from %s", prev_auth.date)
|
||||
|
|
Loading…
Reference in a new issue