From 8503a36df4cebcb1f9a3a757d667ea778c53e571 Mon Sep 17 00:00:00 2001 From: alemidev Date: Thu, 28 Apr 2022 12:57:40 +0200 Subject: [PATCH] ops xor was wrong --- src/treepuncher/treepuncher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treepuncher/treepuncher.py b/src/treepuncher/treepuncher.py index 425413f..762dfe1 100644 --- a/src/treepuncher/treepuncher.py +++ b/src/treepuncher/treepuncher.py @@ -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)