Fixed issue with register
parent
aa9505a04d
commit
2e1967cb5a
|
@ -153,7 +153,7 @@ def register(player_name, discord_uuid=None):
|
||||||
try:
|
try:
|
||||||
player = get_player(mc_uuid=mc_uuid)
|
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.discord_uuid = discord_uuid
|
||||||
player.save()
|
player.save()
|
||||||
return player.json
|
return player.json
|
||||||
|
|
Loading…
Reference in New Issue