Started to go through the unittest errors, fixing player creation.
This commit is contained in:
parent
0b01df1fcc
commit
1130dc5757
11 changed files with 58 additions and 60 deletions
|
|
@ -535,9 +535,9 @@ class DefaultPlayer(PlayerDB):
|
|||
# this will only be set if the utils.create_player
|
||||
# function was used to create the object.
|
||||
cdict = self._createdict
|
||||
if "locks" in cdict:
|
||||
if cdict.get("locks"):
|
||||
self.locks.add(cdict["locks"])
|
||||
if "permissions" in cdict:
|
||||
if cdict.get("permissions"):
|
||||
permissions = cdict["permissions"]
|
||||
del self._createdict
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue