mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Removed duplicates in get_all_puppets(), to manage multisession_modes better.
This commit is contained in:
parent
ab50becfed
commit
edf6c535a0
1 changed files with 3 additions and 3 deletions
|
|
@ -288,10 +288,10 @@ class DefaultPlayer(PlayerDB):
|
|||
|
||||
def get_all_puppets(self):
|
||||
"""
|
||||
Get all currently puppeted objects as a list
|
||||
Get all currently puppeted objects as a list.
|
||||
"""
|
||||
return [session.puppet for session in self.get_all_sessions()
|
||||
if session.puppet]
|
||||
return list(set(session.puppet for session in self.get_all_sessions()
|
||||
if session.puppet))
|
||||
|
||||
def __get_single_puppet(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue