fix token field names
This commit is contained in:
parent
93aa573ed5
commit
d52a0b4df8
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Treepuncher(MinecraftClient):
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
if self.online_mode and self.token:
|
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:
|
if not self.online_mode and self.username:
|
||||||
return self.username
|
return self.username
|
||||||
raise ValueError("No token or username given")
|
raise ValueError("No token or username given")
|
||||||
|
|
Loading…
Reference in a new issue