Added a security to avoid reusing the same player object
This commit is contained in:
@ -80,6 +80,7 @@ class PlayersManager:
|
||||
self._log.debug(f"Changed {playerName}'s config")
|
||||
if makeNewPlayerObject:
|
||||
self._player_data[playerName] = Player(playerName, self, **config)
|
||||
del previousInstance
|
||||
self._cfg["players"][playerName] = config
|
||||
|
||||
def __delitem__(self, playerName):
|
||||
|
||||
Reference in New Issue
Block a user