mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Fixed an issue with creating new chars following the latest optimizations.
This commit is contained in:
parent
018a98b92c
commit
42254fa3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def returns_typeclass_list(method):
|
|||
def func(self, *args, **kwargs):
|
||||
"decorator. Returns a list."
|
||||
matches = method(self, *args, **kwargs)
|
||||
return [dbobj.typeclass or dbobj for dbobj in make_iter(matches)]
|
||||
return [(hasattr(dbobj, "typeclass") and dbobj.typeclass) or dbobj for dbobj in make_iter(matches)]
|
||||
return func
|
||||
|
||||
def returns_typeclass(method):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue