Adjusted a comment
This commit is contained in:
@ -79,6 +79,7 @@ class PlayersManager:
|
|||||||
"""
|
"""
|
||||||
self._log.debug(f"Changed {playerName}'s config")
|
self._log.debug(f"Changed {playerName}'s config")
|
||||||
if makeNewPlayerObject:
|
if makeNewPlayerObject:
|
||||||
|
previousInstance = self._player_data[playerName]
|
||||||
self._player_data[playerName] = Player(playerName, self, **config)
|
self._player_data[playerName] = Player(playerName, self, **config)
|
||||||
del previousInstance
|
del previousInstance
|
||||||
self._cfg["players"][playerName] = config
|
self._cfg["players"][playerName] = config
|
||||||
@ -97,7 +98,7 @@ class PlayersManager:
|
|||||||
@property
|
@property
|
||||||
def items(self):
|
def items(self):
|
||||||
"""
|
"""
|
||||||
Two iterators of the activate players' names and data
|
Two iterators of the activate players' names and object
|
||||||
"""
|
"""
|
||||||
return self._player_data.items()
|
return self._player_data.items()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user