Fixed issue with register

doc_update
Joey Hines 2020-01-08 20:01:56 -06:00
parent aa9505a04d
commit 2e1967cb5a
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def register(player_name, discord_uuid=None):
try:
player = get_player(mc_uuid=mc_uuid)
if discord_uuid is not None and player.discord_uuid == "":
if discord_uuid is not None and player.discord_uuid is None:
player.discord_uuid = discord_uuid
player.save()
return player.json