fix token field names

This commit is contained in:
əlemi 2021-12-13 13:24:52 +01:00
parent 93aa573ed5
commit d52a0b4df8

View file

@ -93,7 +93,7 @@ class Treepuncher(MinecraftClient):
@property
def name(self) -> str:
if self.online_mode and self.token:
return self.token.profile.name
return self.token.selectedProfile.name
if not self.online_mode and self.username:
return self.username
raise ValueError("No token or username given")