mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
Fixed the *_family manager methods to correctly return typeclasses subclassed at any depth.
This commit is contained in:
parent
b244d70e16
commit
554d1b9834
2 changed files with 13 additions and 5 deletions
|
|
@ -230,8 +230,7 @@ class ObjectDB(TypedObject):
|
|||
# location getsetter
|
||||
def __location_get(self):
|
||||
"Get location"
|
||||
loc = _GA(_GA(self, "dbobj"), "db_location")
|
||||
return _GA(loc, "typeclass") if loc else loc
|
||||
return self.db_location
|
||||
|
||||
def __location_set(self, location):
|
||||
"Set location, checking for loops and allowing dbref"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue